mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
mvc: always do stop/start on forced restart
If 'nocheck' is used the service apears running and reload will do nothing.
This commit is contained in:
parent
c30b46bd27
commit
8d0ab40c56
@ -200,7 +200,7 @@ abstract class ApiMutableServiceControllerBase extends ApiControllerBase
|
||||
|
||||
if ($this->serviceEnabled()) {
|
||||
$runStatus = $this->statusAction();
|
||||
if ($runStatus['status'] != 'running') {
|
||||
if ($runStatus['status'] != 'running' || $this->reconfigureForceRestart()) {
|
||||
$backend->configdRun(escapeshellarg(static::$internalServiceName) . ' start');
|
||||
} else {
|
||||
$backend->configdRun(escapeshellarg(static::$internalServiceName) . ' reload');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user