wmstartup: Add custom service definition, leverage subshells better

This commit is contained in:
2018-08-27 12:02:14 -05:00
parent c0b14dba2d
commit c4c2cfdcc9
2 changed files with 31 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ function svc_log() {
}
function prestart() {
if pgrep $service_proccess > /dev/null 2>&1; then
if pgrep $service_process > /dev/null 2>&1; then
svc_log "Already running"
return 1
fi