blob: be8d521f2c64b3e66aea15bff7be366bd532364d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/files/svscan,v 1.4 2002/07/27 00:41:15 raker Exp $
depend() {
need net
}
start() {
ebegin "Starting service scan..."
PATH="/usr/bin:$PATH"
start-stop-daemon --start --quiet --exec /usr/bin/svscan --pidfile /var/run/svscan.pid -- /service &
echo $! > /var/run/svscan.pid
eend $?
}
stop() {
ebegin "Stopping service scan..."
start-stop-daemon --stop --quiet --pidfile /var/run/svscan.pid
eend $?
ebegin "Stopping services..."
svc -dx /service/*
eend $?
ebegin "Stopping service logging..."
svc -dx /service/*/log
eend $?
}
|