diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2003-07-16 14:11:08 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2003-07-16 14:11:08 +0000 |
commit | 16f9bebaed2fb4485c005df726afdcee2b0bc4ca (patch) | |
tree | 939914c189e035205635075c5f52c25253d47bb5 /sysutils/runit/files/runsvdir.sh.in | |
parent | - Update to 0.8.4; (diff) |
New port: runit is daemontools replacement:
- service supervision
- clean process state
- reliable logging facility
- fast system bootup and shutdown
- packaging friendly
- small code size
Submitted by: Sergei Kolobov <sergei@kolobov.com>
PR: 54513
Notes
Notes:
svn path=/head/; revision=84993
Diffstat (limited to 'sysutils/runit/files/runsvdir.sh.in')
-rw-r--r-- | sysutils/runit/files/runsvdir.sh.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/runit/files/runsvdir.sh.in b/sysutils/runit/files/runsvdir.sh.in new file mode 100644 index 000000000000..eba2a9e993e7 --- /dev/null +++ b/sysutils/runit/files/runsvdir.sh.in @@ -0,0 +1,23 @@ +#!/bin/sh +DAEMON=runsvdir +PREFIX=%%PREFIX%% +SVDIR=%%SERVICE_DIR%% +LOG='...........................................................................................................................................................................................................................................................................................................................................................................................................' + +PATH=/command:${PREFIX}/sbin:${PREFIX}/bin:/usr/sbin:/usr/bin:/sbin:/bin + +case "$1" in + start) + echo -n " ${DAEMON}" + exec env - PATH=${PATH} ${PREFIX}/sbin/${DAEMON} $SVDIR $LOG & + ;; + + stop) + echo -n " ${DAEMON}" + /usr/bin/killall -HUP ${DAEMON} + ;; + + *) + echo "Usage: $0 start | stop" + ;; +esac |