sysmgr

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

commit d6c012dbf0f303e630712e679a5fa703b492002d
parent 04934110714a996783f0af28ae827aa2afe15f7d
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 31 Jul 2020 19:28:13 +0300

sysmgr: simplify main 'case' call

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

diff --git a/sysmgr b/sysmgr @@ -241,10 +241,8 @@ main() { # Call the appropriate function depending on the name of the program. case "${0##*/}" in - sysmgr) fn_sysmgr "$@" ;; - runsyssv) fn_runsyssv "$@" ;; - svctl) fn_svctl "$@" ;; - *) out "${0##*/} is not a function" ; exit 1 ; esac + sysmgr|runsyssv|svctl) "fn_${0##*/}" "$@" ;; + *) out "${0##*/} is not a sysmgr function" ; exit 1 ; esac } main "$@"