added net-im/mu-conference-0.7 that supports both jabberd-1.4* and jabberd2-2*
This commit is contained in:
parent
7dbadaca8f
commit
f5a2f59a3c
10 changed files with 308 additions and 0 deletions
33
net-im/mu-conference/files/muc-transport.init-r2
Normal file
33
net-im/mu-conference/files/muc-transport.init-r2
Normal file
|
@ -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 $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue