projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7778fad
)
Add comment.
author
Davin McCall
<davmac@davmac.org>
Mon, 19 Feb 2018 10:57:40 +0000
(10:57 +0000)
committer
Davin McCall
<davmac@davmac.org>
Mon, 19 Feb 2018 10:57:40 +0000
(10:57 +0000)
src/service.cc
patch
|
blob
|
history
diff --git
a/src/service.cc
b/src/service.cc
index 363f096e76757492f85a9a64136e942199ac26f7..64c39f575e58a75810eae867db32ab04535ac066 100644
(file)
--- a/
src/service.cc
+++ b/
src/service.cc
@@
-254,6
+254,8
@@
void service_record::do_start() noexcept
void service_record::dependency_started() noexcept
{
+ // Note that we check for STARTED state here in case the service is in smooth recovery while pinned.
+ // In that case it will wait for dependencies to start before restarting the process.
if ((service_state == service_state_t::STARTING || service_state == service_state_t::STARTED)
&& waiting_for_deps) {
services->add_transition_queue(this);