diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-12-08 16:49:48 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-12-08 16:49:48 +0000 |
commit | 45ab13b7ea8134cda780dce81b62c78a7d5585a6 (patch) | |
tree | cb8299a637729e62ba6ef1175f3ea0d15faa8636 /net-im | |
parent | Stable for HPPA (bug #199195). (diff) | |
download | gentoo-2-45ab13b7ea8134cda780dce81b62c78a7d5585a6.tar.gz gentoo-2-45ab13b7ea8134cda780dce81b62c78a7d5585a6.tar.bz2 gentoo-2-45ab13b7ea8134cda780dce81b62c78a7d5585a6.zip |
Restore initd and confd files that are still needed.
(Portage version: 2.1.4_rc8)
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/ejabberd/ChangeLog | 6 | ||||
-rw-r--r-- | net-im/ejabberd/files/ejabberd-1.1.1-r1.initd | 62 | ||||
-rw-r--r-- | net-im/ejabberd/files/ejabberd-1.1.1.confd | 17 |
3 files changed, 84 insertions, 1 deletions
diff --git a/net-im/ejabberd/ChangeLog b/net-im/ejabberd/ChangeLog index 6905c6a7f624..9772557e8050 100644 --- a/net-im/ejabberd/ChangeLog +++ b/net-im/ejabberd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-im/ejabberd # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.25 2007/12/08 16:25:59 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.26 2007/12/08 16:49:47 ulm Exp $ + + 08 Dec 2007; Ulrich Mueller <ulm@gentoo.org> + +files/ejabberd-1.1.1-r1.initd, +files/ejabberd-1.1.1.confd: + Restore initd and confd files that are still needed. 08 Dec 2007; Tony Vroon <chainsaw@gentoo.org> -files/ejabberd-0.7.5.confd, -files/ejabberd-0.7.5.initd, -files/ejabberd-1.1.1-r1.initd, diff --git a/net-im/ejabberd/files/ejabberd-1.1.1-r1.initd b/net-im/ejabberd/files/ejabberd-1.1.1-r1.initd new file mode 100644 index 000000000000..ce958a7add40 --- /dev/null +++ b/net-im/ejabberd/files/ejabberd-1.1.1-r1.initd @@ -0,0 +1,62 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-1.1.1-r1.initd,v 1.4 2007/12/08 16:49:48 ulm Exp $ + +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 \ + --env HOME=/var/run/jabber \ + --exec /usr/bin/beam \ + --startas /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 $? +} diff --git a/net-im/ejabberd/files/ejabberd-1.1.1.confd b/net-im/ejabberd/files/ejabberd-1.1.1.confd new file mode 100644 index 000000000000..60b0f1002ffb --- /dev/null +++ b/net-im/ejabberd/files/ejabberd-1.1.1.confd @@ -0,0 +1,17 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-1.1.1.confd,v 1.3 2007/12/08 16:49:48 ulm Exp $ + +# Name of your ejabberd node. Used by ejabberdctl to determine which +# node to communicate with. Default is "ejabberd@`hostname -s`". +#EJABBERD_NODE="ejabberd@`hostname -s`" + +# Max number of open network connections. Default is 1024. Increasing +# this will slightly increase memory usage. +#ERL_MAX_PORTS=1024 + +# Return memory to the system after using it, instead of keeping it +# allocated for future use. Decreases the memory required by ejabberd, +# but makes it run slower. Default is unset, set to any value to +# activate. +#ERL_FULLSWEEP_AFTER=0 |