diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2023-06-16 19:12:36 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-16 19:12:36 +0700 |
commit | 33ed3b0c59b7ebe847c1ca69487925e917f3d38a (patch) | |
tree | 45069e72f7787c3555a74e6edc2dfb9c6f8385b2 /network/ejabberd/rc.ejabberd | |
parent | efe4297ed1d68a3fd43e3b578e3acf29df5668d8 (diff) |
network/ejabberd: Fix rc.ejabberd.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ejabberd/rc.ejabberd')
-rw-r--r-- | network/ejabberd/rc.ejabberd | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/network/ejabberd/rc.ejabberd b/network/ejabberd/rc.ejabberd index dfd7a3504316f..466d60bfb954e 100644 --- a/network/ejabberd/rc.ejabberd +++ b/network/ejabberd/rc.ejabberd @@ -17,6 +17,7 @@ stop_ejabberd() { restart_ejabberd() { stop_ejabberd + sleep 1 start_ejabberd } @@ -34,17 +35,23 @@ force-stop_ejabberd() { fi } +reload-config_ejabberd() { + $bin reload_config +} + case "$1" in -start) - start_ejabberd ;; -stop) - stop_ejabberd ;; -restart|reload) - restart_ejabberd ;; -status) - status_ejabberd ;; -force-stop) - force-stop_ejabberd ;; -*) - echo "usage $0 start|stop|restart|status|force-stop" + 'start') + start_ejabberd ;; + 'stop') + stop_ejabberd ;; + 'restart|reload') + restart_ejabberd ;; + 'status') + status_ejabberd ;; + 'force-stop') + force-stop_ejabberd ;; + 'reload-config') + reload-config_ejabberd ;; + *) + echo "usage $0 start|stop|restart|status|force-stop|reload-config" ;; esac |