sysmgr

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

commit ec0f90726a728f12336b9990a8cd22684d6da495
parent 333a167c51c83fd60b110ec0ed5e62fdcfbe6f98
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 10 Jun 2020 09:13:28 +0300

sysmgr: minor nitpick

Diffstat:
Msysmgr | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sysmgr b/sysmgr @@ -21,8 +21,7 @@ out() { log "$@" >&2 ;} error() { printf 'error: %s\n' "$@" >&2 ;} die() { error "$@" "exiting..." ; exit 1;} -RUNDIR="${RUNDIR:-/run/sysmgr}" -SYSDIR="${SYSDIR:-/var/sysmgr}" +: "${RUNDIR:=/run/sysmgr}" "${SYSDIR:=/var/sysmgr}" version=0.3.0 usage() { @@ -68,7 +67,6 @@ checkprocess() { return 0 } [ -d "/proc/$1" ] || return 1 - return 0 } cleanup() {