|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
From 0e1b8518cc0409b268bdede1ae4b424c8544ed20 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
Date: Fri, 24 Apr 2015 16:12:28 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
Subject: [PATCH] units: set KillMode=mixed for our daemons that fork worker
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
processes
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
The daemons should really have the time to kill the workers first,
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
before systemd does it, hence use KillMode=mixed for these daemons.
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
https://bugs.freedesktop.org/show_bug.cgi?id=90051
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
(cherry picked from commit 658f26b828fdd7007cfe82d794f610525b21cb99)
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
units/systemd-importd.service.in | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
units/systemd-udevd.service.in | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
2 files changed, 2 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
diff --git a/units/systemd-importd.service.in b/units/systemd-importd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
index 45e98fd320..6359e5cdd9 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
--- a/units/systemd-importd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+++ b/units/systemd-importd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
@@ -18,3 +18,4 @@ WatchdogSec=1min
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
PrivateTmp=yes
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
ProtectSystem=full
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
ProtectHome=yes
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+KillMode=mixed
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
index a133044005..32f04d901a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
--- a/units/systemd-udevd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+++ b/units/systemd-udevd.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
@@ -22,3 +22,4 @@ Restart=always
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
RestartSec=0
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
ExecStart=@rootlibexecdir@/systemd-udevd
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
MountFlags=slave
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+KillMode=mixed
|