summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Piasek <dagger@gentoo.org>2010-08-10 09:18:37 +0100
committerRobert Piasek <dagger@gentoo.org>2010-08-10 09:18:37 +0100
commit3d1458e21e3e6a4854e0b201902091c302fcef59 (patch)
tree8038e97123481ecdd9b76e57c619ee00cc7fe3e9 /net-mail/zarafa/files/zarafa-gateway.rc6
parentFixed some QA issues. Based on patch supplied by (diff)
downloaddagger-3d1458e21e3e6a4854e0b201902091c302fcef59.tar.gz
dagger-3d1458e21e3e6a4854e0b201902091c302fcef59.tar.bz2
dagger-3d1458e21e3e6a4854e0b201902091c302fcef59.zip
Changed zarafa location to net-mail
Diffstat (limited to 'net-mail/zarafa/files/zarafa-gateway.rc6')
-rw-r--r--net-mail/zarafa/files/zarafa-gateway.rc630
1 files changed, 30 insertions, 0 deletions
diff --git a/net-mail/zarafa/files/zarafa-gateway.rc6 b/net-mail/zarafa/files/zarafa-gateway.rc6
new file mode 100644
index 0000000..d9e7f7a
--- /dev/null
+++ b/net-mail/zarafa/files/zarafa-gateway.rc6
@@ -0,0 +1,30 @@
+#!/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 $?
+}