summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2001-11-16 13:54:39 +0000
committerGerrit Pape <pape@smarden.org>2001-11-16 13:54:39 +0000
commitb371bd55212984b35eb4d4d4834f44e008b45e80 (patch)
tree24b407ef3838999c1e7abc4a188287b64441e826 /etc
downloadrunit-b371bd55212984b35eb4d4d4834f44e008b45e80.tar.gz
runit-b371bd55212984b35eb4d4d4834f44e008b45e80.tar.xz
runit-b371bd55212984b35eb4d4d4834f44e008b45e80.zip
Initial revision
Diffstat (limited to 'etc')
-rwxr-xr-xetc/debian/18
-rwxr-xr-xetc/debian/22
-rwxr-xr-xetc/debian/315
-rwxr-xr-xetc/debian/ctrlaltdel4
4 files changed, 29 insertions, 0 deletions
diff --git a/etc/debian/1 b/etc/debian/1
new file mode 100755
index 0000000..c9547db
--- /dev/null
+++ b/etc/debian/1
@@ -0,0 +1,8 @@
+#!/bin/sh
+# system one time tasks
+rm -f /etc/runit/stopit
+/etc/init.d/rcS
+
+/etc/init.d/rmnologin
+
+exit 0
diff --git a/etc/debian/2 b/etc/debian/2
new file mode 100755
index 0000000..9966e42
--- /dev/null
+++ b/etc/debian/2
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /command/svscanboot
diff --git a/etc/debian/3 b/etc/debian/3
new file mode 100755
index 0000000..0903763
--- /dev/null
+++ b/etc/debian/3
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+LAST=0
+test -r /etc/runit/reboot && LAST=6
+
+echo 'Stopping services...'
+/command/svc -d /service/*
+/bin/sleep 5
+echo 'Stopping log services...'
+/command/svc -d /service/*/log
+/bin/sleep 5
+
+/etc/init.d/rc $LAST
+
+exit 0
diff --git a/etc/debian/ctrlaltdel b/etc/debian/ctrlaltdel
new file mode 100755
index 0000000..de3a440
--- /dev/null
+++ b/etc/debian/ctrlaltdel
@@ -0,0 +1,4 @@
+#!/bin/sh
+MSG="System is going down in 10 seconds..."
+/bin/echo "$MSG" | /usr/bin/wall
+/bin/sleep 10