sysmgr

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

commit 0ceba301c3668035da88a9e58a0da50bb00930b7
parent 9e2ffc3ad8e551fcae3a59968fd8aeaf2a6ae169
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 16 Apr 2020 12:39:51 +0300

runsyssv: use wait instead of sleeping

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

diff --git a/sysmgr b/sysmgr @@ -191,8 +191,8 @@ fn_runsyssv() { trap "redirectsignal $sig" $sig done - # check whether services are alive - while checkprocess "$svpid" ; do sleep 1 ; done + # Wait until service goes down + wait # Do a cleanup when the service is killed cleanup