runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 05a9c5dfb43fe92cd296f5454cd042ff1d3cd197
parent 40093f0992f7610244f1aa5bcfae00f2c1d2a1f4
Author: Gerrit Pape <pape@smarden.org>
Date:   Thu, 26 Sep 2002 12:42:56 +0000

grmpf, stage 3 was broken.

Diffstat:
Metc/debian/3 | 6++++--
Metc/freebsd/3 | 14+++++++-------
Metc/openbsd/3 | 13++++++++-----
3 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/etc/debian/3 b/etc/debian/3 @@ -1,14 +1,16 @@ #!/bin/sh exec 2>&1 +PATH=/sbin:/bin:/command + LAST=0 test -r /etc/runit/reboot && LAST=6 echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +svwaitdown -xk -t14 /service/getty-* echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' /etc/init.d/rc $LAST diff --git a/etc/freebsd/3 b/etc/freebsd/3 @@ -1,16 +1,16 @@ #!/bin/sh exec 2>&1 -LAST=0 -test -r /etc/runit/reboot && LAST=6 - -echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +PATH=/bin:/sbin:/command echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' -/etc/init.d/rc $LAST +if test -r /etc/runit/reboot; then + exec reboot +else + exec halt +fi exit 0 diff --git a/etc/openbsd/3 b/etc/openbsd/3 @@ -1,16 +1,19 @@ #!/bin/sh exec 2>&1 -LAST=0 -test -r /etc/runit/reboot && LAST=6 +PATH=/bin:/sbin:/command echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +svwaitdown -xk -t14 /service/getty-* echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' -/etc/init.d/rc $LAST +if test -r /etc/runit/reboot; then + exec reboot +else + exec halt +fi exit 0