summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-20 03:16:02 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-20 03:16:02 +0000
commit26f5c815be807b253bcf6167fb18b6b9516c9d36 (patch)
tree5e42b5c80a3cb97c3bdbaec4efa48f7a5c55f98a /sys-process/runit/files
parentBump to latest test version from upstream. (diff)
downloadgentoo-2-26f5c815be807b253bcf6167fb18b6b9516c9d36.tar.gz
gentoo-2-26f5c815be807b253bcf6167fb18b6b9516c9d36.tar.bz2
gentoo-2-26f5c815be807b253bcf6167fb18b6b9516c9d36.zip
New initscript by Radek Podgorny #128918.
(Portage version: 2.1_pre9)
Diffstat (limited to 'sys-process/runit/files')
-rwxr-xr-xsys-process/runit/files/3-1.414
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-process/runit/files/3-1.4 b/sys-process/runit/files/3-1.4
new file mode 100755
index 000000000000..f143f5f46011
--- /dev/null
+++ b/sys-process/runit/files/3-1.4
@@ -0,0 +1,14 @@
+#!/bin/sh
+exec >/dev/console 2>&1
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+echo 'Waiting for getties to stop...'
+sv shutdown -w 10 /var/service/getty-*
+
+echo 'Waiting for services to stop...'
+sv shutdown -w 300 /var/service/*
+
+echo 'Shutdown...'
+test -x /etc/runit/reboot && LAST=6 || LAST=0
+test -x /etc/runit/reboot && RC=reboot || RC=shutdown
+RUNLEVEL=$LAST /sbin/rc $RC