aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2023-06-16 19:12:36 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-16 19:12:36 +0700
commit33ed3b0c59b7ebe847c1ca69487925e917f3d38a (patch)
tree45069e72f7787c3555a74e6edc2dfb9c6f8385b2 /network
parentefe4297ed1d68a3fd43e3b578e3acf29df5668d8 (diff)
network/ejabberd: Fix rc.ejabberd.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/ejabberd/ejabberd.SlackBuild2
-rw-r--r--network/ejabberd/rc.ejabberd31
2 files changed, 20 insertions, 13 deletions
diff --git a/network/ejabberd/ejabberd.SlackBuild b/network/ejabberd/ejabberd.SlackBuild
index 5bd9fe77d749..12f8be14b5b2 100644
--- a/network/ejabberd/ejabberd.SlackBuild
+++ b/network/ejabberd/ejabberd.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ejabberd
VERSION=${VERSION:-23.04}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/network/ejabberd/rc.ejabberd b/network/ejabberd/rc.ejabberd
index dfd7a3504316..466d60bfb954 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