mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-29 13:51:51 +02:00
cmd/ctrld: wait ctrld started during restart command
This commit is contained in:
1 parent
46e8d4fad7
commit
125b4b6077
4 files changed
+50
-30
No files matched your search
@@ -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