summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-18 22:57:46 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-18 22:57:46 +0100
commitd8cfa085894607afdeb8bba025d842adf09ab7ea (patch)
tree04396de22ccfe400e88c994ab4d17628cf76842e
parentba035df230e41bf9d70ebb47915c9472b7884412 (diff)
service: if a reload operation fails, don't shut down the service
-rw-r--r--TODO2
-rw-r--r--src/service.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/TODO b/TODO
index 4605115d0d..61a8cfcdd1 100644
--- a/TODO
+++ b/TODO
@@ -1,5 +1,3 @@
-* don't fail a service if reload fails
-
* reload PID file after reload, allow dynamically changing main PIDs
* Fix multiple reload statements
diff --git a/src/service.c b/src/service.c
index e765004e4f..67b1dfd4a6 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2650,7 +2650,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
if (success)
service_enter_running(s, true);
else
- service_enter_stop(s, false);
+ service_enter_running(s, false);
break;