f308728157
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2528 6952d904-891a-0410-993b-d76249ca496b
31 lines
705 B
Plaintext
31 lines
705 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
SPOOLERCONFIG=/etc/zarafa/spooler.cfg
|
|
SPOOLERPROGRAM=/usr/bin/zarafa-spooler
|
|
|
|
[ -x $SPOOLERPROGRAM ] || exit 0
|
|
|
|
SPOOLERCONFIG_OPT=""
|
|
[ ! -z $SPOOLERCONFIG -a -f $SPOOLERCONFIG ] && SPOOLERCONFIG_OPT="-c $SPOOLERCONFIG"
|
|
|
|
PIDFILE=/var/run/"${SVCNAME}".pid
|
|
|
|
start() {
|
|
ebegin "Starting ${SVCNAME}"
|
|
start-stop-daemon --start \
|
|
--pidfile ${PIDFILE} \
|
|
--exec ${SPOOLERPROGRAM} -- ${SPOOLERCONFIG_OPT}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ${SVCNAME}"
|
|
start-stop-daemon --stop \
|
|
--pidfile ${PIDFILE} \
|
|
--exec ${SPOOLERPROGRAM} -- ${SPOOLERCONFIG_OPT}
|
|
eend $?
|
|
}
|