sysmgr

a simplistic service supervisor (deprecated)
git clone git://git.ckyln.com/~cem/sysmgr.git
Log | Files | Refs | README | LICENSE

commit 2272ec9346dea648458dbcd17d12290e975a06dc
parent 3894f05293138acbf1440e26ae9677632f266c38
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat,  3 Jul 2021 22:18:57 +0300

svctl: use signal name instead of numbers

Diffstat:
Msysmgr | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysmgr b/sysmgr @@ -220,8 +220,8 @@ fn_svctl() { kill -USR1 "$pid" ;; down|stop) - log 15 > "$RUNDIR/$service/lock" - kill -15 "$pid" + log TERM > "$RUNDIR/$service/lock" + kill -TERM "$pid" ;; up|start) checkprocess "$pid" || rm -rf -- "${RUNDIR:?}/$service" ;;