summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2001-12-30 16:28:53 +0000
committerGerrit Pape <pape@smarden.org>2001-12-30 16:28:53 +0000
commit2ff91a26d1ba9d7d374c8216dbbf0d12465f500a (patch)
treeef4d72f5cd5df0fb9622bed4055cab4fef5d79e5 /etc
parenta7cbf375a3f7407b8c809a27ea3f241b0a2248ec (diff)
downloadrunit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.tar.gz
runit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.tar.xz
runit-2ff91a26d1ba9d7d374c8216dbbf0d12465f500a.zip
runs on openbsd 2.9.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/debian/313
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