sysmgr

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

commit 1a86527cb44dbeff10cb7c2cc203519f283e36c8
parent 20600b8d408aa6a6bb0ffd89e7bdf159c8ba84b3
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 13 Apr 2020 15:09:36 +0300

sysmgr: fix shellcheck errors

Diffstat:
Msysmgr | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sysmgr b/sysmgr @@ -204,7 +204,10 @@ fn_svctl() { getpid "$service" case "$job" in stat|status) - checkprocess $pid && out "$service: OK" || + # Out function will not give an error, so we don't + # need an if statement here. + # shellcheck disable=2015 + checkprocess "$pid" && out "$service: OK" || { out "$service: DOWN" ; exit 1 ;} ;; restart)