rc.shutdown (745B)
1 #!/bin/sh 2 3 4 ### Things to do before hardware halt/reboot/poweroff. 5 ### Ideally, it should be a single call to the service manager, 6 ### telling it to bring all the services down. 7 8 ### If your s6-linux-init-maker invocation was made with the -1 9 ### option, messages from rc.shutdown will appear on /dev/console 10 ### as well as be logged by the catch-all logger. 11 ### If your s6-linux-init-maker invocation did NOT include the -1 12 ### option, messages from rc.shutdown will only be logged by the 13 ### catch-all logger and will NOT appear on /dev/console. In order 14 ### to print them to /dev/console instead, you may want to 15 ### uncomment the following line: 16 exec >/dev/console 2>&1 17 18 ### If your services are managed by s6-rc: 19 exec s6-rc -v2 -bDa change