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:
1d22f11
)
Fix bug: "internal" services never properly registered that they had
author
Davin McCall
<davmac@davmac.org>
Tue, 17 Nov 2015 18:58:22 +0000
(18:58 +0000)
committer
Davin McCall
<davmac@davmac.org>
Tue, 17 Nov 2015 18:58:22 +0000
(18:58 +0000)
stopped.
service.cc
patch
|
blob
|
history
diff --git
a/service.cc
b/service.cc
index fd47212d4e46e3a67aabefde006f305d124ec774..78dbe57b3eaabf0a33761bab2bdf2e6358bed172 100644
(file)
--- a/
service.cc
+++ b/
service.cc
@@
-383,9
+383,6
@@
bool ServiceRecord::start_ps_process(const std::vector<std::string> &pargs) noex
}
}
-
-
-
// Mark this and all dependent services as force-stopped.
void ServiceRecord::forceStop()
{
@@
-507,10
+504,13
@@
void ServiceRecord::stopping()
stopped();
}
}
- else {
+ else
if (service_type == ServiceType::SCRIPTED)
{
// Scripted service.
start_ps_process(std::vector<string>(1, "stop"));
- }
+ }
+ else {
+ stopped();
+ }
}
void ServiceSet::service_active(ServiceRecord *sr)