#!/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 }