diff options
author | Gerrit Pape <pape@smarden.org> | 2001-12-30 16:28:53 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2001-12-30 16:28:53 +0000 |
commit | 2ff91a26d1ba9d7d374c8216dbbf0d12465f500a (patch) | |
tree | ef4d72f5cd5df0fb9622bed4055cab4fef5d79e5 /etc | |
parent | a7cbf375a3f7407b8c809a27ea3f241b0a2248ec (diff) | |
download | runit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.tar.gz runit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.tar.xz runit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.zip |
runs on openbsd 2.9.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/debian/3 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/etc/debian/3 b/etc/debian/3 index ce96dc7..83512a2 100755 --- a/etc/debian/3 +++ b/etc/debian/3 @@ -3,14 +3,21 @@ LAST=0 test -r /etc/runit/reboot && LAST=6 +echo 'Stopping getties...' +/command/svc -d /service/getty-* +/command/svwaitdown -t14 /service/getty-* || \ + ( echo 'Killing getties...' ; /command/svc -k /service/getty-* ) + echo 'Stopping services...' /command/svc -d /service/* -/command/svwaitdown /service/* || ( echo 'Killing services...' ; \ - /command/svc -k /service/* ) +/command/svwaitdown -t350 /service/* || \ + ( echo 'Killing services...' ; /command/svc -k /service/* ) + echo 'Stopping log services...' /command/svc -d /service/*/log -/bin/sleep 5 +/command/svwaitdown -t35 /service/*/log +echo 'Shutdown...' /etc/init.d/rc $LAST exit 0 |