commit 3894f05293138acbf1440e26ae9677632f266c38
parent b06275fe56e0b750dadae7a7b393fee2d579ebc9
Author: Cem Keylan <cem@ckyln.com>
Date: Sat, 3 Jul 2021 22:18:05 +0300
svctl kill: send USR1 signal instead of KILL signal
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sysmgr b/sysmgr
@@ -174,6 +174,8 @@ fn_runsyssv() {
trap "redirectsignal $sig" $sig
done
+ trap "redirectsignal KILL" USR1
+
# Wait until service goes down.
wait
@@ -214,8 +216,8 @@ fn_svctl() {
fn_svctl start "$service"
;;
kill)
- log 9 > "$RUNDIR/$service/lock"
- kill -9 "$pid"
+ log KILL > "$RUNDIR/$service/lock"
+ kill -USR1 "$pid"
;;
down|stop)
log 15 > "$RUNDIR/$service/lock"