If we cannot find a service executable for an item and we make it to the bottom of stop_service() then simply killall service name

This commit is contained in:
Scott Ullrich 2006-03-10 23:01:51 +00:00
parent 225ba4a320
commit b39dc701e5

View File

@ -104,13 +104,16 @@ function stop_service($name) {
if($service['stopcmd']) {
eval($service['stopcmd']);
}
if(!($service['rcfile'] or $service['stopcmd'])) {
mwexec_bg("/usr/bin/killall {$service['executable']}");
}
if(!($service['rcfile'] or $service['stopcmd'])) {
mwexec_bg("/usr/bin/killall {$service['executable']}");
return;
}
break;
}
}
}
/* finally if we get here lets simply kill the service name */
mwexec_bg("/usr/bin/killall {$name}");
}
function restart_service($name) {