dtfscript: Use isup() in prestart() for services
This commit is contained in:
parent
b15d1e61cf
commit
a0159c04a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user