updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / runit / 3
blob0d314dbbb289adda11ec919b4c522f0ef63eb0aa
1 #!/bin/sh
2 exec 2>&1
4 PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
6 if [ -x /etc/runit/reboot ]
7 then
8 export RUNLEVEL=6
9 else
10 export RUNLEVEL=0
13 echo 'Waiting for services to stop...'
14 sv -w196 force-stop /etc/runit/runsvdir/current/*
15 sv exit /etc/runit/runsvdir/current/*
17 echo 'Shutdown...'
19 /etc/rc.shutdown