diff options
author | Gerrit Pape <pape@smarden.org> | 2002-01-01 10:25:50 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-01-01 10:25:50 +0000 |
commit | 44106088217023982574f9ef1b489ca2ff917241 (patch) | |
tree | 75c05734de8f898f4721192690914a0f644675df /etc | |
parent | 2e382b21f50f28e2d18ad1fd80d1596edba78aa9 (diff) | |
download | runit-44106088217023982574f9ef1b489ca2ff917241.tar.gz runit-44106088217023982574f9ef1b489ca2ff917241.tar.xz runit-44106088217023982574f9ef1b489ca2ff917241.zip |
code cleanup.
TARGETS fix. install.html: typo. etc/freebsd stage files, getty service added.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/freebsd/1 | 7 | ||||
-rwxr-xr-x | etc/freebsd/2 | 2 | ||||
-rwxr-xr-x | etc/freebsd/3 | 19 | ||||
-rwxr-xr-x | etc/freebsd/ctrlaltdel | 8 | ||||
-rwxr-xr-x | etc/freebsd/getty-ttyv4/run | 2 |
5 files changed, 38 insertions, 0 deletions
diff --git a/etc/freebsd/1 b/etc/freebsd/1 new file mode 100755 index 0000000..06681e4 --- /dev/null +++ b/etc/freebsd/1 @@ -0,0 +1,7 @@ +#!/bin/sh +# system one time tasks +rm -f /etc/runit/stopit + +/bin/sh /etc/rc autoboot + +exit 0 diff --git a/etc/freebsd/2 b/etc/freebsd/2 new file mode 100755 index 0000000..9966e42 --- /dev/null +++ b/etc/freebsd/2 @@ -0,0 +1,2 @@ +#!/bin/sh +exec /command/svscanboot diff --git a/etc/freebsd/3 b/etc/freebsd/3 new file mode 100755 index 0000000..065cd30 --- /dev/null +++ b/etc/freebsd/3 @@ -0,0 +1,19 @@ +#!/bin/sh + +echo 'Stopping services...' +/command/svc -d /service/* +/command/svwaitdown -t350 /service/* || \ + ( echo 'Killing services...' ; /command/svc -k /service/* ) + +echo 'Stopping log services...' +/command/svc -d /service/*/log +/command/svwaitdown -t35 /service/*/log + +echo 'Shutdown...' +if test -r /etc/runit/reboot; then + /sbin/reboot +else + /sbin/halt +fi + +exit 0 diff --git a/etc/freebsd/ctrlaltdel b/etc/freebsd/ctrlaltdel new file mode 100755 index 0000000..aa62a01 --- /dev/null +++ b/etc/freebsd/ctrlaltdel @@ -0,0 +1,8 @@ +#!/bin/sh +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 diff --git a/etc/freebsd/getty-ttyv4/run b/etc/freebsd/getty-ttyv4/run new file mode 100755 index 0000000..2d5e3dc --- /dev/null +++ b/etc/freebsd/getty-ttyv4/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/libexec/getty Pc ttyv4 |