From a0159c04a2876f57c1d82db75b8be9c345588ca4 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 27 Sep 2018 20:23:39 -0500 Subject: [PATCH] dtfscript: Use isup() in prestart() for services --- .config/dtfscripts/common_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dtfscripts/common_service.sh b/.config/dtfscripts/common_service.sh index 5cf9335b..c867a74a 100755 --- a/.config/dtfscripts/common_service.sh +++ b/.config/dtfscripts/common_service.sh @@ -29,7 +29,7 @@ function svc_log() { # Basic pre-start checks. Stick extra checks in prestart-extra function prestart() { - if pgrep $service_process > /dev/null 2>&1; then + if isup; then svc_log "Already running" 0 return 1 fi