git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
8c4e5b8
Branches
Tags
master
keks-overlay.git
net-im
ejabberd
files
ejabberd-1.1.2.initd
A keks * initial commit
Lars Strojny
commited
8c4e5b8
at 2006-12-17 11:28:02
ejabberd-1.1.2.initd
Blame
History
Raw
#!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ opts="${opts} reload" depend() { use dns need net provide jabber-server } checkconfig() { if [ ! -e /etc/jabber/ejabberd.cfg ] ; then eerror "You need an /etc/jabber/ejabberd.cfg file to run ejabberd" return 1 fi } start() { checkconfig || return 1 ebegin "Starting eJabberd" start-stop-daemon --start --quiet --chuid jabber:jabber \ --exec /usr/bin/env HOME=/var/run/jabber /usr/bin/ejabberd -- -noshell -detached eend $? } stop() { ebegin "Stopping eJabberd" if [ -z "$EJABBERD_NODE" ]; then EJABBERD_NODE="ejabberd@`hostname -s`" fi /usr/bin/ejabberdctl $EJABBERD_NODE stop eend $? } # Work around a bug in /sbin/runscript.sh - it won't run our custom # restart() unless it finds these two strings in the file. # svc_start svc_stop restart() { ebegin "Restarting eJabberd" if [ -z "$EJABBERD_NODE" ]; then EJABBERD_NODE="ejabberd@`hostname -s`" fi /usr/bin/ejabberdctl $EJABBERD_NODE restart eend $? } reload() { ebegin "Reloading eJabberd" if [ -z "$EJABBERD_NODE" ]; then EJABBERD_NODE="ejabberd@`hostname -s`" fi /usr/bin/ejabberdctl $EJABBERD_NODE reopen-log eend $? }