diff options
Diffstat (limited to 'net-im/mu-conference/files/muc-transport.init')
-rw-r--r-- | net-im/mu-conference/files/muc-transport.init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-im/mu-conference/files/muc-transport.init b/net-im/mu-conference/files/muc-transport.init new file mode 100644 index 000000000000..39f611579824 --- /dev/null +++ b/net-im/mu-conference/files/muc-transport.init @@ -0,0 +1,26 @@ +#!/sbin/runscript + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting MUC Jabber Transport" + jabberd -B -c /etc/jabber/muctrans.xml -H /var/spool/jabber >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stoping MUC Jabber Transport" + if [ -f /var/log/jabber/muctrans.pid ]; then + kill `cat /var/log/jabber/muctrans.pid` + fi + sleep 2 + if [ -f /var/log/jabber/muctrans.pid ]; then + kill -9 `cat /var/log/jabber/muctrans.pid` + rm -f /var/log/jabber/muctrans.pid + fi + rm -f /var/log/jabber/muctrans.pid + eend $? +} |