mds/www-apps/zarafa/files/zarafa-gateway.rc6
geos_one d6727abf63 add zarafa
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2511 6952d904-891a-0410-993b-d76249ca496b
2010-10-11 20:17:05 +00:00

31 lines
747 B
Plaintext

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