summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-02 23:13:43 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-03 08:44:06 +0100
commit67b5839e3fbaab19eb22a793fb20e6ce84e418f2 (patch)
tree3c6b25123f3505a53687ab2a2b91e5a306d9819d
parentsys-devel/llvm: Fix static analyzer -isystem support, #586168 (diff)
downloadgentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.tar.gz
gentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.tar.bz2
gentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.zip
net-im/ejabberd: Add reload option to initd script
-rw-r--r--net-im/ejabberd/files/ejabberd-3.initd8
1 files changed, 8 insertions, 0 deletions
diff --git a/net-im/ejabberd/files/ejabberd-3.initd b/net-im/ejabberd/files/ejabberd-3.initd
index a40d938a578..2827aeb43d4 100644
--- a/net-im/ejabberd/files/ejabberd-3.initd
+++ b/net-im/ejabberd/files/ejabberd-3.initd
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+extra_started_commands="reload"
+
depend() {
use dns
need epmd net
@@ -19,6 +21,12 @@ start() {
eend $?
}
+reload() {
+ ebegin "Reloading ejabberd configuration"
+ /usr/sbin/ejabberdctl ${EJABBERDCTL_OPTS} reload_config
+ eend $?
+}
+
stop() {
ejabberdctl status >/dev/null 2>&1
if test $? = 3; then