sysmgr

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

commit 29c9803bef349d206299ba0ddbb44c5b59d3151a
parent 0ceba301c3668035da88a9e58a0da50bb00930b7
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 17 Apr 2020 16:22:21 +0300

svctl: don't exit if the checked service is down

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

diff --git a/sysmgr b/sysmgr @@ -215,7 +215,7 @@ fn_svctl() { # need an if statement here. # shellcheck disable=2015 checkprocess "$pid" && out "$service: OK" || - { out "$service: DOWN" ; exit 1 ;} + out "$service: DOWN" ;; restart) fn_svctl kill "$service"