sysmgr

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

commit 18c782f08b0fa42a818a4235c023b84a6f297a7c
parent fb2a741345ba38f4d9418a93415248b3065c9861
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 16 Sep 2020 16:50:41 +0300

svctl: do not just remove the directory, check if running

Diffstat:
Msysmgr | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysmgr b/sysmgr @@ -225,7 +225,7 @@ fn_svctl() { kill -15 "$pid" ;; up|start) - rm -rf "${RUNDIR:?}/$service" ;; + checkprocess "$pid" || rm -rf "${RUNDIR:?}/$service" ;; once) # This will place a lockfile upon start, so sysmgr will not # attempt to restart it, if it goes down.