diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-03-04 19:31:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-03-04 19:31:58 +0000 |
commit | 7ae1aeea9e41b122a06e185f03b243ecc1160661 (patch) | |
tree | db9e1dc56bfe54b16e7ce2f76795e89ff9c9a12b /net-im/jabberd/files | |
parent | gpl2, forget the later (diff) | |
download | gentoo-2-7ae1aeea9e41b122a06e185f03b243ecc1160661.tar.gz gentoo-2-7ae1aeea9e41b122a06e185f03b243ecc1160661.tar.bz2 gentoo-2-7ae1aeea9e41b122a06e185f03b243ecc1160661.zip |
gpl2, forget the later
Diffstat (limited to 'net-im/jabberd/files')
-rw-r--r-- | net-im/jabberd/files/jabber.rc6-r5 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net-im/jabberd/files/jabber.rc6-r5 b/net-im/jabberd/files/jabber.rc6-r5 index 779f78960eaa..01990f3a95ad 100644 --- a/net-im/jabberd/files/jabber.rc6-r5 +++ b/net-im/jabberd/files/jabber.rc6-r5 @@ -1,15 +1,16 @@ #!/sbin/runscript -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabber.rc6-r5,v 1.2 2004/02/02 21:40:45 humpback Exp $ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# 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.3 2004/03/04 19:31:19 vapier Exp $ + depend() { - need net + need net } start() { - ebegin "Starting Jabber Server" + ebegin "Starting Jabber Server" - jabberd -B -c /etc/jabber/multiple.xml >/dev/null 2>&1 + 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 @@ -20,20 +21,19 @@ start() { fi done - - eend $? + eend $? } stop() { - ebegin "Stopping Jabber Server" - killall jabberd + ebegin "Stopping Jabber Server" + killall jabberd if [ "$addon" == "/etc/jabber/jit.xml" ]; then killall jit-wpjabber - fi - sleep 2 + fi + sleep 2 killall -9 jabberd if [ "$addon" == "/etc/jabber/jit.xml" ]; then killall -9 jit-wpjabber fi - eend $? + eend $? } |