network/ejabberd: Fix rc.ejabberd.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
efe4297ed1
commit
33ed3b0c59
|
@ -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}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue