sysmgr

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

commit b1f3036f1fd438648cf1dce35723da556a21137b
parent c7e269f8c0379127f8193c8fd732b0bf01dbba46
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 26 Feb 2020 09:44:17 +0300

svctl: check for RUNDIR instead of sysmgr pid

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

diff --git a/sysmgr b/sysmgr @@ -161,8 +161,8 @@ fn_runsyssv() { } fn_svctl() { - [ -e "$RUNDIR/pid" ] || die \ - "Could not find the pid of sysmgr" "Are you sure that it is working?" + [ -d "$RUNDIR" ] || die \ + "Could not find $RUNDIR (RUNDIR)" "Are you sure that sysmgr is working?" [ "$2" ] || { out "usage: ${0##*/} command service" "" "sysmgr-$version" exit 1