commit:     67b5839e3fbaab19eb22a793fb20e6ce84e418f2
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 22:13:43 2016 +0000
Commit:     Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Sun Jul  3 07:44:06 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67b5839e

net-im/ejabberd: Add reload option to initd script

 net-im/ejabberd/files/ejabberd-3.initd | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net-im/ejabberd/files/ejabberd-3.initd 
b/net-im/ejabberd/files/ejabberd-3.initd
index a40d938..2827aeb 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

Reply via email to