From 08f82a1baa3c2f84e34327d99fa7aebb967f7285 Mon Sep 17 00:00:00 2001 From: Gustavo Felisberto Date: Thu, 8 Jul 2004 16:31:40 +0000 Subject: 0.6.0-r2 back with fixed init --- net-im/mu-conference/files/muc-transport.init-r2 | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 net-im/mu-conference/files/muc-transport.init-r2 (limited to 'net-im/mu-conference/files/muc-transport.init-r2') diff --git a/net-im/mu-conference/files/muc-transport.init-r2 b/net-im/mu-conference/files/muc-transport.init-r2 new file mode 100644 index 000000000000..03978bdad7bd --- /dev/null +++ b/net-im/mu-conference/files/muc-transport.init-r2 @@ -0,0 +1,33 @@ +#!/sbin/runscript + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting MUC Jabber Transport" + if [ -f ${PIDFILE} ]; then + if [ -z $(ps ax | grep `cat ${PIDFILE}` | grep -v grep ) ] + then + rm -f ${PIDFILE} + fi + fi + + jabberd -B -c ${CONFIG} -H /var/spool/jabber >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stoping MUC Jabber Transport" + if [ -f ${PIDFILE} ]; then + kill `cat ${PIDFILE}` + fi + sleep 2 + if [ -f ${PIDFILE} ]; then + kill -9 `cat ${PIDFILE}` + rm -f ${PIDFILE} + fi + rm -f ${PIDFILE} + eend $? +} -- cgit v1.2.3-65-gdbad