summary refs log tree commit diff
path: root/etc/debian
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2001-11-22 17:42:01 +0000
committerGerrit Pape <pape@smarden.org>2001-11-22 17:42:01 +0000
commitf7ccdd14a5c954c1c5f0aab084776c2a49586dc1 (patch)
tree14124814db7129cb8afc2b33641a23694d7ac710 /etc/debian
parent54b64b3f09fde903a80fafb0244165e7623998e4 (diff)
downloadrunit-f7ccdd14a5c954c1c5f0aab084776c2a49586dc1.tar.gz
runit-f7ccdd14a5c954c1c5f0aab084776c2a49586dc1.tar.xz
runit-f7ccdd14a5c954c1c5f0aab084776c2a49586dc1.zip
* collects all terminated children in all stages
  * sends sigkill to whole process group if stage2 crashes and waits
    5 seconds before restarting
  * ctraltdel not automatically shuts down, now respects /etc/runit/stopit
  * /etc/runit/ctrlaltdel touches /etc/runit/stopit
  * on shutdown request: send sigterm to stage 2, wait max 5 second, send
    sigkill if still running, leave stage 2, enter stage 3
Diffstat (limited to 'etc/debian')
-rwxr-xr-xetc/debian/ctrlaltdel9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/debian/ctrlaltdel b/etc/debian/ctrlaltdel
index de3a440..2bfe4e0 100755
--- a/etc/debian/ctrlaltdel
+++ b/etc/debian/ctrlaltdel
@@ -1,4 +1,7 @@
 #!/bin/sh
-MSG="System is going down in 10 seconds..."
-/bin/echo "$MSG" | /usr/bin/wall
-/bin/sleep 10
+MSG="System is going down in 14 seconds..."
+
+#echo 'disabled.' ; exit
+/bin/touch /etc/runit/stopit && \
+  /bin/echo "$MSG" | /usr/bin/wall
+/bin/sleep 14