dtfscript: Use isup() in prestart() for services

This commit is contained in:
Salt 2018-09-27 20:23:39 -05:00
parent b15d1e61cf
commit a0159c04a2

View File

@ -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