git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
b87b2ed
Branches
Tags
master
keks-overlay.git
net-im
ejabberd
files
ejabberd-3.initd
add ejabberd 15.06
Hanno Böck
commited
b87b2ed
at 2015-06-25 16:28:43
ejabberd-3.initd
Blame
History
Raw
#!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-3.initd,v 1.4 2013/04/05 09:03:34 radhermit Exp $ depend() { use dns need net provide jabber-server } start() { if ejabberdctl status >/dev/null 2>&1; then ewarn "ejabberd is already started (manually?)." return 0 fi ebegin "Starting ejabberd" /usr/sbin/ejabberdctl ${EJABBERDCTL_OPTS} start eend $? } stop() { ejabberdctl status >/dev/null 2>&1 if test $? = 3; then ewarn "ejabberd is already stopped (manually?)." return 0 fi ebegin "Stopping ejabberd" if /usr/sbin/ejabberdctl stop >/dev/null 2>&1; then cnt=0 sleep 1 while ejabberdctl status >/dev/null 2>&1 || test $? = 1; do echo -n . cnt=`expr $cnt + 1` if [ $cnt -ge 60 ] ; then eend 1 break fi sleep 1 done eend 0 else eend 1 einfo "Please, run '/usr/sbin/ejabberdctl stop' to see what's going on." fi eend 0 }