2008-01-14 02:05:43 +01:00
|
|
|
#!/sbin/runscript
|
2012-03-19 18:00:36 +01:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2008-01-14 02:05:43 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
use jabber-server
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting Palaver MUC service"
|
2013-03-22 00:41:58 +01:00
|
|
|
source ${CONFIG}
|
2012-03-19 18:00:36 +01:00
|
|
|
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \
|
2013-03-22 00:41:58 +01:00
|
|
|
--exec /usr/bin/twistd -- -l $LOG/palaver.log --pidfile /var/run/jabber/palaver.pid \
|
|
|
|
palaver --jid=$JID --rhost=$RHOST --rport=$RPORT --secret=$SECRET --spool=$SPOOL
|
2008-01-14 02:05:43 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping Palaver MUC service"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/palaver.pid
|
|
|
|
eend $?
|
|
|
|
}
|