~cemkeylan/sysmgr

3894f05293138acbf1440e26ae9677632f266c38 — Cem Keylan 1 year, 5 months ago b06275f
svctl kill: send USR1 signal instead of KILL signal
1 files changed, 4 insertions(+), 2 deletions(-)

M sysmgr
M sysmgr => sysmgr +4 -2
@@ 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"