sysmgr

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

commit 250bb97f0dc3136394a64c58c128af6cbc9fd586
parent bae53ea1e1d5542779d60d609456a129f1d4ef09
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  7 Jul 2020 14:53:16 +0300

sysmgr: change usage outputs

Diffstat:
Msysmgr | 18+++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/sysmgr b/sysmgr @@ -33,17 +33,13 @@ usage() { log "Usage: $SYNOPSIS" "" "$@" "" "sysmgr-$version" >&2 } case "${0##*/}" in - sysmgr) out "sysmgr" \ - "Can be configured from the 'RUNDIR' and 'SYSDIR' environment variables" "" \ - "Example: SYSDIR=\"$HOME/.service\" RUNDIR=\"$HOME/.run\" sysmgr" ;; - runsyssv) out "runsyssv <service>" \ - "Runs the given service as the parent process." \ - "Redirects received signals to its service." ;; - svctl) out "svctl <command> <service>" \ - "start/stop/restart Starts/stops/restarts a service" \ - "kill Sends a SIGKILL to the service" \ - "once Starts a service once" \ - "status Checks the service status" \ + sysmgr) out "sysmgr" "See sysmgr(8) for usage information." ;; + runsyssv) out "runsyssv [service]" ;; + svctl) out "svctl [command] [service...]" \ + "start/stop/restart Start/stop/restart services" \ + "kill Send a SIGKILL to services" \ + "once Start services once" \ + "status Check service statuses" \ "up/down Same as start/stop" esac exit 0