summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/ejabberd/files/ejabberd-2.0.4.initd')
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.4.initd54
1 files changed, 0 insertions, 54 deletions
diff --git a/net-im/ejabberd/files/ejabberd-2.0.4.initd b/net-im/ejabberd/files/ejabberd-2.0.4.initd
deleted file mode 100644
index 2ca2820c0664..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.4.initd
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.4.initd,v 1.2 2009/03/27 19:40:57 hanno Exp $
-
-opts="${opts} reload"
-
-depend() {
- use dns
- need net
- provide jabber-server
-}
-
-checkconfig() {
- if [ ! -e /etc/jabber/ejabberd.cfg ] ; then
- eerror "You need a /etc/jabber/ejabberd.cfg file to run ejabberd"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ejabberd"
- # the process name of beam is different depending whether smp is used.
- # set it explicitly so start-stop-daemon works
- case "$HAVE_SMP" in
- "1"|"true"|"yes")
- BEAMNAME="beam.smp"
- SMPOPT="auto"
- ;;
- *)
- BEAMNAME="beam"
- SMPOPT="disable"
- ;;
- esac
- cd /var/lib/ejabberd
- start-stop-daemon --start --quiet --chuid jabber:jabber \
- --name $BEAMNAME \
- --exec /usr/sbin/ejabberd -- -detached -noinput -smp $SMPOPT
- eend $?
-}
-
-stop() {
- ebegin "Stopping ejabberd"
- /usr/sbin/ejabberdctl stop
- eend $?
-}
-
-reload() {
- ebegin "Reloading ejabberd"
- /usr/sbin/ejabberdctl reopen-log
- eend $?
-}
-