diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2004-07-08 16:31:40 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2004-07-08 16:31:40 +0000 |
commit | 08f82a1baa3c2f84e34327d99fa7aebb967f7285 (patch) | |
tree | 35994e25bb9e36725bfdb6db34f9bff21c381f88 /net-im/mu-conference/files/muc-transport.init-r2 | |
parent | Added missing IUSE. (diff) | |
download | gentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.tar.gz gentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.tar.bz2 gentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.zip |
0.6.0-r2 back with fixed init
Diffstat (limited to 'net-im/mu-conference/files/muc-transport.init-r2')
-rw-r--r-- | net-im/mu-conference/files/muc-transport.init-r2 | 33 |
1 files changed, 33 insertions, 0 deletions
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 $? +} |