Merge "init: log services requested restart"
This commit is contained in:
commit
0ddcf6d2f1
1 changed files with 4 additions and 0 deletions
|
@ -545,6 +545,10 @@ Result<void> Service::Start() {
|
|||
if ((flags_ & SVC_ONESHOT) && disabled) {
|
||||
flags_ |= SVC_RESTART;
|
||||
}
|
||||
|
||||
LOG(INFO) << "service '" << name_
|
||||
<< "' requested start, but it is already running (flags: " << flags_ << ")";
|
||||
|
||||
// It is not an error to try to start a service that is already running.
|
||||
reboot_on_failure.Disable();
|
||||
return {};
|
||||
|
|
Loading…
Reference in a new issue