blob: 8e265d5ef7a4da1495259d336c24f1b5d544977e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabber.rc6-r5,v 1.4 2004/07/14 23:45:05 agriffis Exp $
depend() {
need net
}
start() {
ebegin "Starting Jabber Server"
jabberd -B -c /etc/jabber/multiple.xml >/dev/null 2>&1
for addon in /etc/jabber/*.xml; do
if [ "$addon" == "/etc/jabber/jit.xml" ]; then
jit-wpjabber -d -c $addon >/dev/null 2>&1
else
if [ "$addon" != "/etc/jabber/multiple.xml" ]; then
jabberd -B -c $addon >/dev/null 2>&1
fi
fi
done
eend $?
}
stop() {
ebegin "Stopping Jabber Server"
killall jabberd
if [ "$addon" == "/etc/jabber/jit.xml" ]; then
killall jit-wpjabber
fi
sleep 2
killall -9 jabberd
if [ "$addon" == "/etc/jabber/jit.xml" ]; then
killall -9 jit-wpjabber
fi
eend $?
}
|