sysmgr

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

commit 6b82688d06a4017a80e4b13e2299803cd9081e5c
parent 4aa657f58bb05c24c88dc2e728c81641bd060567
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 25 Feb 2020 10:43:35 +0300

remove unnecessary for loop while trapping signals, add more signals

Diffstat:
Msysmgr | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/sysmgr b/sysmgr @@ -86,12 +86,9 @@ fn_sysmgr() { # Add pid to $RUNDIR before starting loops printf '%s\n' "$$" > "$RUNDIR/pid" - # We redirect hangup and interrupt signals to the - # 'term' function so that we send kill signals to - # all sysmgr processes - for sig in 1 2 ; do - trap term "$sig" - done + # We redirect signals to the 'term' function so that + # we send kill signals to all sysmgr processes. + trap term 1 2 3 6 15 # Lots of loops here. The first while loop is to # make sure that the sysmgr does not exist. The