sysmgr

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

commit a0a18343948227af751fd73e60130cd869d27851
parent d6c012dbf0f303e630712e679a5fa703b492002d
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 31 Jul 2020 19:29:03 +0300

delete trailing whitespace

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

diff --git a/sysmgr b/sysmgr @@ -114,7 +114,7 @@ redirectsignal() { fn_sysmgr() { [ "$1" ] && usage - + # Start sanity checks. We first check that we have the "$SYSDIR" variable. # We then check whether the given SYSDIR exists, and has service files # installed. @@ -158,7 +158,7 @@ fn_runsyssv() { # Create the run directory for the service where we will be adding the pid # value when we start the process. mkdir -p "$RUNDIR/${service##*/}" - + # Start the service script. If the service fails exit with failure code 1. # If the service exits without a failure (which it probably shouldn't) exit # with code 0. @@ -166,7 +166,7 @@ fn_runsyssv() { svpid="$!" log "$svpid" > "$RUNDIR/${service##*/}/pid" log "$$" > "$RUNDIR/${service##*/}/syspid" - + 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.