Gentoo Archives: gentoo-commits

From: "Thilo Bangert (bangert)" <bangert@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/daemontools-encore/files: svscan.init-1.02
Date: Wed, 05 Jan 2011 12:32:49
Message-Id: 20110105123239.E77E920057@flycatcher.gentoo.org
1 bangert 11/01/05 12:32:39
2
3 Added: svscan.init-1.02
4 Log:
5 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
6
7 (Portage version: 2.2.0_alpha11/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 sys-process/daemontools-encore/files/svscan.init-1.02
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-1.02?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-1.02?rev=1.1&content-type=text/plain
14
15 Index: svscan.init-1.02
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $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 $
21
22 depend() {
23 use net
24 before ntpd ntp-client spamd apache apache2
25 }
26
27 start() {
28 ebegin "Starting service scan"
29 setsid start-stop-daemon --start --exec /usr/bin/svscan \
30 --background --make-pidfile \
31 --pidfile /var/run/svscan.pid -- /service
32 eend $?
33 }
34
35 stop() {
36 ebegin "Stopping service scan"
37 start-stop-daemon --stop --exec /usr/bin/svscan \
38 --pidfile /var/run/svscan.pid
39 eend $?
40
41 ebegin "Stopping service scan services"
42 svc -dx /service/* 2>/dev/null
43 eend $?
44
45 ebegin "Stopping service scan logging"
46 svc -dx /service/*/log 2>/dev/null
47 eend $?
48 }