nixpkgs/pkgs/os-specific/linux/systemd/fail-after-reaching-respawn-limit.patch

13 lines
405 B
Diff
Raw Normal View History

2012-08-09 16:51:48 +02:00
diff --git a/src/core/service.c b/src/core/service.c
index 1c127bd..eafdbe5 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -2487,6 +2487,7 @@ static int service_start(Unit *u) {
r = service_start_limit_test(s);
if (r < 0) {
service_notify_sockets_dead(s, true);
+ service_set_state(s, SERVICE_FAILED);
return r;
}