sysmgr

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

commit 4a23fa5f36451d3c295f33d6fe68be52c30af792
parent 6b82688d06a4017a80e4b13e2299803cd9081e5c
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 25 Feb 2020 11:20:23 +0300

svctl: exit if sysmgr is not available

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

diff --git a/sysmgr b/sysmgr @@ -152,6 +152,8 @@ fn_runsyssv() { } fn_svctl() { + [ -e "$RUNDIR/pid" ] || die \ + "Could not find the pid of sysmgr" "Are you sure that it is working?" [ "$2" ] || { printf 'usage: %s <kill|restart|stop|start> <service>\n' "${0##*/}" exit 0