diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-04-20 05:58:37 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-04-20 05:58:37 +0000 |
commit | 9e6d0f168bf59df9cd829d6ebe63fb08ea9ae01e (patch) | |
tree | 77f5afd89846e1dd1b7020498426905f6ef7b5cb /skel/rc.shutdown | |
parent | cb5b1af6dee0ff41e73a3bc0661ba7aa7b1d1b94 (diff) | |
download | s6-linux-init-9e6d0f168bf59df9cd829d6ebe63fb08ea9ae01e.tar.xz |
Add skel files; add initdefault; remove env-stage2
Diffstat (limited to 'skel/rc.shutdown')
-rwxr-xr-x | skel/rc.shutdown | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/skel/rc.shutdown b/skel/rc.shutdown index e69de29..6acd0f0 100755 --- a/skel/rc.shutdown +++ b/skel/rc.shutdown @@ -0,0 +1,17 @@ +#!/bin/sh -e + +### Things to do before hardware halt/reboot/poweroff. +### Ideally, it should be a single call to the service manager, +### telling it to bring all the services down. + +### If your services are managed by sysv-rc: +### remove the K11reboot link from /etc/rc6.d to prevent +### sysv-rc from rebooting prematurely - because sysvinit does +### not properly separate state changes from system init/shutdown. +# exec /etc/init.d/rc 6 + +### If your services are managed by OpenRC: +# exec /sbin/openrc shutdown + +### If your services are managed by s6-rc: +# exec s6-rc -da change |