blob: 0b9b790b8f865afa9a8aacf788e616ad0ad3a8b3 (
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
|
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
MONITORCONFIG=/etc/zarafa/monitor.cfg
MONITORPROGRAM=/usr/bin/zarafa-monitor
[ -x $MONITORPROGRAM ] || exit 0
MONITORCONFIG_OPT=""
[ ! -z $MONITORCONFIG -a -f $MONITORCONFIG ] && MONITORCONFIG_OPT="-c $MONITORCONFIG"
PIDFILE=/var/run/"${SVCNAME}".pid
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start \
--pidfile ${PIDFILE} \
--exec ${MONITORPROGRAM} -- ${MONITORCONFIG_OPT}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop \
--pidfile ${PIDFILE} \
--exec ${MONITORPROGRAM} -- ${MONITORCONFIG_OPT}
eend $?
}
|