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"
|
2012-03-19 18:00:36 +01:00
|
|
|
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \
|
2012-07-19 03:29:51 +02:00
|
|
|
--exec /usr/bin/twistd -- -l /var/log/jabber/palaver.log --pidfile /var/run/jabber/palaver.pid \
|
|
|
|
palaver -c ${CONFIG}
|
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 $?
|
|
|
|
}
|