mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: wait ctrld started during restart command
This commit is contained in:
committed by
Cuong Manh Le
parent
46e8d4fad7
commit
125b4b6077
@@ -271,7 +271,7 @@ case "$1" in
|
||||
echo "failed to stop $name"
|
||||
exit 1
|
||||
fi
|
||||
exit 1
|
||||
exit 0
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
|
||||
@@ -304,7 +304,7 @@ case "$1" in
|
||||
logger -c "failed to stop $name"
|
||||
exit 1
|
||||
fi
|
||||
exit 1
|
||||
exit 0
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user