mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
225ba4a320
commit
b39dc701e5
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user