network/ejabberd: Fix rc.ejabberd.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Alexander Verbovetsky 2023-06-16 19:12:36 +07:00 committed by Willy Sudiarto Raharjo
parent efe4297ed1
commit 33ed3b0c59
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 20 additions and 13 deletions

View File

@ -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}

View File

@ -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