chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: fix return value of systemctl start and friends
[elogind.git]
/
src
/
service.c
diff --git
a/src/service.c
b/src/service.c
index 2fec3ea8c9168b7fa290b71e02042ec607878d95..fabb71ca978f23453aac4c4bec7cad1db28a7643 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-2572,6
+2572,13
@@
static void service_cgroup_notify_event(Unit *u) {
service_enter_running(s, true);
break;
+ case SERVICE_STOP_SIGTERM:
+ case SERVICE_STOP_SIGKILL:
+ if (main_pid_good(s) <= 0 && !control_pid_good(s))
+ service_enter_stop_post(s, true);
+
+ break;
+
default:
;
}