diff options
author | Peter Volkov <pva@gentoo.org> | 2009-04-09 05:40:39 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-04-09 05:40:39 +0000 |
commit | 664830f8a33ed120038eab90a604415af8fce30c (patch) | |
tree | c4bd8b46361d59281ac1cfd33cc29c31c5b2bf63 /net-im/ejabberd/files/ejabberd-2.0.4.initd | |
parent | Add missing dep on sys-apps/miscfiles. bug 262291 by Jeroen Roovers (diff) | |
download | gentoo-2-664830f8a33ed120038eab90a604415af8fce30c.tar.gz gentoo-2-664830f8a33ed120038eab90a604415af8fce30c.tar.bz2 gentoo-2-664830f8a33ed120038eab90a604415af8fce30c.zip |
Version bump, bug #265341 thank candrews for report and Vadim Efimov for this work.
(Portage version: 2.2_rc28/cvs/Linux i686)
Diffstat (limited to 'net-im/ejabberd/files/ejabberd-2.0.4.initd')
-rw-r--r-- | net-im/ejabberd/files/ejabberd-2.0.4.initd | 54 |
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 $? -} - |