rc.shutdown 712 B

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