diff options
author | Thilo Bangert <bangert@gentoo.org> | 2011-01-05 12:32:39 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2011-01-05 12:32:39 +0000 |
commit | d03eea7015c80268002b145262cc2e9ff4bef875 (patch) | |
tree | 451d2aa88dad6effc7c856a4e84d7684d8973253 /sys-process/daemontools-encore/files | |
parent | Add 10.5/ppc64 profile (diff) | |
download | gentoo-2-d03eea7015c80268002b145262cc2e9ff4bef875.tar.gz gentoo-2-d03eea7015c80268002b145262cc2e9ff4bef875.tar.bz2 gentoo-2-d03eea7015c80268002b145262cc2e9ff4bef875.zip |
initial release (#334481) - thanks bruce -- daemontools-encore is a collection of tools for managing UNIX services. It is derived from the public-domain release of daemontools
(Portage version: 2.2.0_alpha11/cvs/Linux i686)
Diffstat (limited to 'sys-process/daemontools-encore/files')
-rw-r--r-- | sys-process/daemontools-encore/files/svscan.init-1.02 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-process/daemontools-encore/files/svscan.init-1.02 b/sys-process/daemontools-encore/files/svscan.init-1.02 new file mode 100644 index 000000000000..8a35ebebf4c1 --- /dev/null +++ b/sys-process/daemontools-encore/files/svscan.init-1.02 @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-1.02,v 1.1 2011/01/05 12:32:39 bangert Exp $ + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + setsid start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} |