diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 16:08:25 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 16:08:25 +0000 |
commit | 123b1fda0fb23741b3ebcd1b94eddb4521cb80ab (patch) | |
tree | 24783f06412ebdd5e3e6069d7da3a8e7340a6237 /sys-process/runit/files | |
parent | Moved sys-apps/minit to sys-process/minit (diff) | |
download | historical-123b1fda0fb23741b3ebcd1b94eddb4521cb80ab.tar.gz historical-123b1fda0fb23741b3ebcd1b94eddb4521cb80ab.tar.bz2 historical-123b1fda0fb23741b3ebcd1b94eddb4521cb80ab.zip |
Moved from sys-apps/runit to sys-process/runit.
Diffstat (limited to 'sys-process/runit/files')
-rwxr-xr-x | sys-process/runit/files/1 | 10 | ||||
-rwxr-xr-x | sys-process/runit/files/2 | 6 | ||||
-rwxr-xr-x | sys-process/runit/files/3 | 15 | ||||
-rwxr-xr-x | sys-process/runit/files/ctrlaltdel | 9 | ||||
-rw-r--r-- | sys-process/runit/files/digest-runit-1.0.5 | 1 | ||||
-rwxr-xr-x | sys-process/runit/files/finish.getty | 2 | ||||
-rwxr-xr-x | sys-process/runit/files/run.getty | 2 |
7 files changed, 45 insertions, 0 deletions
diff --git a/sys-process/runit/files/1 b/sys-process/runit/files/1 new file mode 100755 index 000000000000..d6a5b4f64eeb --- /dev/null +++ b/sys-process/runit/files/1 @@ -0,0 +1,10 @@ +#!/bin/sh +# system one time tasks + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +RUNLEVEL=S /sbin/rc sysinit +RUNLEVEL=S /sbin/rc boot + +touch /etc/runit/stopit +chmod 0 /etc/runit/stopit diff --git a/sys-process/runit/files/2 b/sys-process/runit/files/2 new file mode 100755 index 000000000000..233ad006aac3 --- /dev/null +++ b/sys-process/runit/files/2 @@ -0,0 +1,6 @@ +#!/bin/sh + +PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin + +exec env - PATH=$PATH \ +runsvdir /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' diff --git a/sys-process/runit/files/3 b/sys-process/runit/files/3 new file mode 100755 index 000000000000..182151e723d0 --- /dev/null +++ b/sys-process/runit/files/3 @@ -0,0 +1,15 @@ +#!/bin/sh +exec >/dev/console 2>&1 +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +echo 'Waiting for getties to stop...' +svwaitdown -xk -t10 /var/service/getty-* + +echo 'Waiting for services to stop...' +svwaitdown -xk -t300 /var/service/* + +echo 'Shutdown...' +test -x /etc/runit/reboot && LAST=6 || LAST=0 +test -x /etc/runit/reboot && RC=reboot || RC=shutdown +RUNLEVEL=$LAST /sbin/rc $RC + diff --git a/sys-process/runit/files/ctrlaltdel b/sys-process/runit/files/ctrlaltdel new file mode 100755 index 000000000000..668445738dfc --- /dev/null +++ b/sys-process/runit/files/ctrlaltdel @@ -0,0 +1,9 @@ +#!/bin/sh + +PATH=/bin:/usr/bin +MSG="System is going down in 14 seconds..." + +# echo 'disabled.' ; exit +touch /etc/runit/stopit +chmod 100 /etc/runit/stopit && echo "$MSG" | wall +/bin/sleep 14 diff --git a/sys-process/runit/files/digest-runit-1.0.5 b/sys-process/runit/files/digest-runit-1.0.5 new file mode 100644 index 000000000000..3179a3bb2ec0 --- /dev/null +++ b/sys-process/runit/files/digest-runit-1.0.5 @@ -0,0 +1 @@ +MD5 e90ed8f2f37fae157b0f422ff6e594cb runit-1.0.5.tar.gz 89541 diff --git a/sys-process/runit/files/finish.getty b/sys-process/runit/files/finish.getty new file mode 100755 index 000000000000..c3d440a85e38 --- /dev/null +++ b/sys-process/runit/files/finish.getty @@ -0,0 +1,2 @@ +#!/bin/sh +exec utmpset -w TTY diff --git a/sys-process/runit/files/run.getty b/sys-process/runit/files/run.getty new file mode 100755 index 000000000000..ab6f9543fe97 --- /dev/null +++ b/sys-process/runit/files/run.getty @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/agetty 38400 TTY linux |