diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-04-05 22:30:31 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-04-05 22:30:31 (GMT) |
commit | 9649ae208248fc14b44dde67d6bc7301127d9f4c (patch) | |
tree | b95348b8ebcb96c8978ea8bce39a6fb822d76415 /abs/core/runit-scripts/runitscripts/3 | |
parent | bdefc1e81c89dbb12e7e914a9f1f220ee5ed1714 (diff) | |
download | linhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.zip linhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.tar.gz linhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.tar.bz2 |
runit-scripts: fix frontend respawn by shutting down all services in 3. refs #961
add pause utility from ignite project
remove power script stuff as it is done in poweroff-scripts
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/3')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/3 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/abs/core/runit-scripts/runitscripts/3 b/abs/core/runit-scripts/runitscripts/3 index 1a4b384..91617e5 100755 --- a/abs/core/runit-scripts/runitscripts/3 +++ b/abs/core/runit-scripts/runitscripts/3 @@ -1,7 +1,16 @@ #!/bin/sh + +PATH=/bin:/sbin:/usr/bin:/usr/sbin + clear . /etc/rc.conf . /etc/rc.d/functions + +stat_busy "Waiting for services to stop..." +sv -w196 force-stop /service/* +sv exit /service/* +stat_done + for i in `seq 3` do echo " " > /dev/tty1 @@ -18,8 +27,9 @@ then /etc/runit/3.local stat_done fi -/usr/sbin/ethtool -s eth0 wol g 2>/dev/null -/usr/sbin/ethtool -s eth1 wol g 2>/dev/null -/usr/sbin/ethtool -s eth2 wol g 2>/dev/null + +ethtool -s eth0 wol g 2>/dev/null +ethtool -s eth1 wol g 2>/dev/null +ethtool -s eth2 wol g 2>/dev/null /etc/rc.shutdown |