cmd/ctrld: wait ctrld started during restart command

This commit is contained in:
Cuong Manh Le
2023-08-05 01:34:31 +00:00
committed by Cuong Manh Le
parent 46e8d4fad7
commit 125b4b6077
4 changed files with 50 additions and 30 deletions

View File

@@ -271,7 +271,7 @@ case "$1" in
echo "failed to stop $name"
exit 1
fi
exit 1
exit 0
;;
restart)
$0 stop

View File

@@ -304,7 +304,7 @@ case "$1" in
logger -c "failed to stop $name"
exit 1
fi
exit 1
exit 0
;;
restart)
$0 stop

View File

@@ -227,7 +227,7 @@ start() {
stop() {
if ! is_running; then
elog "$NAME is not running."
exit 1
exit 0
fi
elog "Shutting down $NAME Services: "
kill -SIGTERM "$(get_pid)"