sysmgr

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

commit 95ebff0a7ede58f9e39ba74d525c6e1b9aa88ca0
parent 31ab171d44df9b58c35458440cbbfae64b09be19
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 28 Feb 2020 15:50:42 +0300

change signal numbers to their names

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

diff --git a/sysmgr b/sysmgr @@ -109,7 +109,7 @@ fn_sysmgr() { # We redirect signals to the 'term' function so that # we send kill signals to all sysmgr processes. - trap term 1 2 3 6 15 + trap term INT HUP QUIT ABRT TERM # Lots of loops here. The first while loop is to # make sure that the sysmgr does not exist. The @@ -157,7 +157,7 @@ fn_runsyssv() { printf '%s\n' "$svpid" > "$RUNDIR/${service##*/}/pid" printf '%s\n' "$$" > "$RUNDIR/${service##*/}/syspid" - for sig in 1 2 3 6 15 ; do + for sig in INT HUP QUIT ABRT TERM ; do # We want to trap every signal with their own # value so that we kill the service with the # requested signal.