blob: 64314e5a0d7b774d10329d4ac4d710ed38897c90 (
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
30
31
32
33
34
35
36
|
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
opts="depend checkconfig start stop"
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/mwcollect/mwcollect.conf ] ; then
eerror "/etc/mwcollect/mwcollect.conf not found!"
return 1
fi
}
start() {
ebegin "Starting mwcollectd"
checkconfig && \
start-stop-daemon --start --quiet \
--exec /usr/sbin/mwcollectd -- --pid-file=/var/run/mwcollect.pid \
--daemon --user=nobody --config=/etc/mwcollect/mwcollect.conf \
${OPTIONS}
eend $?
}
stop() {
ebegin "Stopping mwcollectd"
start-stop-daemon --stop --quiet \
--pidfile /var/run/mwcollect.pid \
--exec /usr/sbin/mwcollectd
eend $?
}
|