mds/www-apps/zarafa/files/zarafa-ical.rc6

31 lines
663 B
Plaintext
Raw Normal View History

#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
ICALCONFIG=/etc/zarafa/ical.cfg
ICALPROGRAM=/usr/bin/zarafa-ical
[ -x $ICALPROGRAM ] || exit 0
ICALCONFIG_OPT=""
[ ! -z $ICALCONFIG -a -f $ICALCONFIG ] && ICALCONFIG_OPT="-c $ICALCONFIG"
PIDFILE=/var/run/"${SVCNAME}".pid
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start \
--pidfile ${PIDFILE} \
--exec ${ICALPROGRAM} -- ${ICALCONFIG_OPT}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop \
--pidfile ${PIDFILE} \
--exec ${ICALPROGRAM} -- ${ICALCONFIG_OPT}
eend $?
}