1 2 3 4 5 6 7 8 9 10
#!/bin/execlineb -P foreground { s6-echo "/etc/rc.shutdown called" } # Shut down all services if -n { s6-rc -da change } foreground { s6-echo "`s6-rc -da change` failed" } foreground { sleep 0.5s }