sysmgr

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

commit 268a39436c51e9148563293f7dee8251c3eb4cfb
parent 0f1349d0b9c6c0f0d9dfbc5d35a509b6dfb42f27
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 13 Apr 2020 14:27:25 +0300

sysmgr: change logging functions

Diffstat:
Msysmgr | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysmgr b/sysmgr @@ -17,8 +17,9 @@ out() { printf '%s\n' "$@" >&2 ;} +log() { out "$@" 2>&1 ;} error() { printf 'error: %s\n' "$@" >&2 ;} -die() { printf 'error: %s\n' "$@" "exiting..." >&2 ; exit 1 ;} +die() { error "$@" "exiting..." ; exit 1;} RUNDIR="${RUNDIR:-/run/sysmgr}" SYSDIR="${SYSDIR:-/var/sysmgr}"