summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2003-01-24 14:18:11 +0000
committerGerrit Pape <pape@smarden.org>2003-01-24 14:18:11 +0000
commit3bc722193d7b59c78dc15c723b747919b093828d (patch)
tree2220a941aca32ffbfb7ca44cee8d4b94dc1fb0f4 /etc
parent66db52c8b65bbecf38c15db7222fc9a6eede601c (diff)
downloadrunit-3bc722193d7b59c78dc15c723b747919b093828d.tar.gz
runit-3bc722193d7b59c78dc15c723b747919b093828d.tar.xz
runit-3bc722193d7b59c78dc15c723b747919b093828d.zip
* runsv.c: close finish script file descriptor.
  * runsv.c: close logpipe[] instead of sending sigterm to logservice when
    told to exit, loggers should exit when they see EOF on stdin (thx Paul
    Jarc).
  * etc/*/1, etc/*/3: remove explicit 'exit'.
  * error.h: include <errno.h> (upcoming glibc changes).
0.8.2.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/debian/15
-rwxr-xr-xetc/debian/32
-rwxr-xr-xetc/freebsd/12
-rwxr-xr-xetc/freebsd/32
-rwxr-xr-xetc/openbsd/12
-rwxr-xr-xetc/openbsd/32
6 files changed, 2 insertions, 13 deletions
diff --git a/etc/debian/1 b/etc/debian/1
index c9547db..717289d 100755
--- a/etc/debian/1
+++ b/etc/debian/1
@@ -1,8 +1,7 @@
 #!/bin/sh
 # system one time tasks
-rm -f /etc/runit/stopit
+
 /etc/init.d/rcS
 
+rm -f /etc/runit/stopit
 /etc/init.d/rmnologin
-
-exit 0
diff --git a/etc/debian/3 b/etc/debian/3
index be0554b..cf35a13 100755
--- a/etc/debian/3
+++ b/etc/debian/3
@@ -14,5 +14,3 @@ svwaitdown -xk -t350 /service/*
 
 echo 'Shutdown...'
 /etc/init.d/rc $LAST
-
-exit 0
diff --git a/etc/freebsd/1 b/etc/freebsd/1
index 0b7e719..121ff57 100755
--- a/etc/freebsd/1
+++ b/etc/freebsd/1
@@ -10,5 +10,3 @@ echo '/etc/rc failed. Press <enter> for emergency shell...'
 read input
 /bin/sh -p
 /sbin/reboot
-
-exit
diff --git a/etc/freebsd/3 b/etc/freebsd/3
index dfaa234..c301702 100755
--- a/etc/freebsd/3
+++ b/etc/freebsd/3
@@ -12,5 +12,3 @@ if test -r /etc/runit/reboot; then
 else
   exec halt
 fi
-
-exit 0
diff --git a/etc/openbsd/1 b/etc/openbsd/1
index 417edf2..f83a3f2 100755
--- a/etc/openbsd/1
+++ b/etc/openbsd/1
@@ -10,5 +10,3 @@ echo '/etc/rc failed. Press <enter> for emergency shell...'
 read input
 /bin/sh -l
 /sbin/reboot
-
-exit
diff --git a/etc/openbsd/3 b/etc/openbsd/3
index 3fba79d..82da4d1 100755
--- a/etc/openbsd/3
+++ b/etc/openbsd/3
@@ -15,5 +15,3 @@ if test -r /etc/runit/reboot; then
 else
   exec halt
 fi
-
-exit 0