diff options
author | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2016-07-02 23:13:43 +0100 |
---|---|---|
committer | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2016-07-03 08:44:06 +0100 |
commit | 67b5839e3fbaab19eb22a793fb20e6ce84e418f2 (patch) | |
tree | 3c6b25123f3505a53687ab2a2b91e5a306d9819d /net-im | |
parent | sys-devel/llvm: Fix static analyzer -isystem support, #586168 (diff) | |
download | gentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.tar.gz gentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.tar.bz2 gentoo-67b5839e3fbaab19eb22a793fb20e6ce84e418f2.zip |
net-im/ejabberd: Add reload option to initd script
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/ejabberd/files/ejabberd-3.initd | 8 |
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 a40d938a5783..2827aeb43d42 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 |