gentoo-overlay/net-im/punjab/files/punjab-initd

25 lines
622 B
Text
Raw Normal View History

#!/sbin/openrc-run
2012-07-19 02:42:51 +02:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
use jabber-server
}
start() {
ebegin "Starting Punjab BOSH connection manager"
start-stop-daemon --start --pidfile /var/run/jabber/punjab.pid -u jabber -g jabber \
2012-07-19 03:37:40 +02:00
--exec /usr/bin/twistd -- -l /var/log/jabber/punjab.log --pidfile /var/run/jabber/punjab.pid \
2012-07-19 04:39:47 +02:00
-y /etc/jabber/punjab.tac
# -c ${CONFIG}
2012-07-19 02:42:51 +02:00
eend $?
}
stop() {
ebegin "Stopping Punjab BOSH connection manager"
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/punjab.pid
eend $?
}