dot

packages and services management
Log | Files | Refs | README

commit 46a5609a9d7e31318d85b92d1d5ebbdf66aad149
parent 1173b4b8822cd848ec93283df73e1b8c990304d4
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  9 Nov 2017 15:57:05 +0100

reliability: check if the command started (immediately for now)

Diffstat:
Mbin/service | 3+--
Rservice/scron -> service/crond | 0
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/service b/bin/service @@ -23,8 +23,7 @@ case $cmd in (start) s=$1 shift - sh "$HOME/etc/service/$s" "$@" >> "$HOME/var/log/$s" 2>&1 || - err "$s" 'could not start' + sh "$HOME/etc/service/$s" "$@" >> "$HOME/var/log/$s" 2>&1 printf '%-14s: %s\n' "$s" "$(pgrep -x "$s" | tr '\n' ' ')" ;; (stop) diff --git a/service/scron b/service/crond