diff options
author | Gerrit Pape <pape@smarden.org> | 2001-11-22 17:42:01 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2001-11-22 17:42:01 +0000 |
commit | f7ccdd14a5c954c1c5f0aab084776c2a49586dc1 (patch) | |
tree | 14124814db7129cb8afc2b33641a23694d7ac710 /etc/debian | |
parent | 54b64b3f09fde903a80fafb0244165e7623998e4 (diff) | |
download | runit-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-x | etc/debian/ctrlaltdel | 9 |
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 |