|
|
17b0f1 |
From 5be84b3ae46c0fd35c3e80d4f457bf5aedc8af8f Mon Sep 17 00:00:00 2001
|
|
|
17b0f1 |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
17b0f1 |
Date: Wed, 23 Sep 2015 17:27:39 +0200
|
|
|
17b0f1 |
Subject: [PATCH] units: increase watchdog timeout to 3min for all our services
|
|
|
17b0f1 |
|
|
|
17b0f1 |
Apparently, disk IO issues are more frequent than we hope, and 1min
|
|
|
17b0f1 |
waiting for disk IO happens, so let's increase the watchdog timeout a
|
|
|
17b0f1 |
bit, for all our services.
|
|
|
17b0f1 |
|
|
|
17b0f1 |
See #1353 for an example where this triggers.
|
|
|
17b0f1 |
|
|
|
17b0f1 |
(cherry picked from commit c2fc2c2560f0ca0fab383753c065e45d76f465e5)
|
|
|
17b0f1 |
Resolves: #1267707
|
|
|
17b0f1 |
---
|
|
|
17b0f1 |
units/systemd-hostnamed.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-importd.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-journald.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-localed.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-logind.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-machined.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-networkd.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-resolved.service.m4.in | 2 +-
|
|
|
17b0f1 |
units/systemd-timedated.service.in | 2 +-
|
|
|
17b0f1 |
units/systemd-timesyncd.service.in | 2 +-
|
|
|
17b0f1 |
10 files changed, 10 insertions(+), 10 deletions(-)
|
|
|
17b0f1 |
|
|
|
17b0f1 |
diff --git a/units/systemd-hostnamed.service.in b/units/systemd-hostnamed.service.in
|
|
|
17b0f1 |
index cc88ecd0db..b7079e4a7c 100644
|
|
|
17b0f1 |
--- a/units/systemd-hostnamed.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-hostnamed.service.in
|
|
|
17b0f1 |
@@ -14,7 +14,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/hostnamed
|
|
|
17b0f1 |
ExecStart=@rootlibexecdir@/systemd-hostnamed
|
|
|
17b0f1 |
BusName=org.freedesktop.hostname1
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_SYS_ADMIN
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
PrivateTmp=yes
|
|
|
17b0f1 |
PrivateDevices=yes
|
|
|
17b0f1 |
PrivateNetwork=yes
|
|
|
17b0f1 |
diff --git a/units/systemd-importd.service.in b/units/systemd-importd.service.in
|
|
|
17b0f1 |
index 5534a49ede..60e8e9c85f 100644
|
|
|
17b0f1 |
--- a/units/systemd-importd.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-importd.service.in
|
|
|
17b0f1 |
@@ -14,7 +14,7 @@ ExecStart=@rootlibexecdir@/systemd-importd
|
|
|
17b0f1 |
BusName=org.freedesktop.import1
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP
|
|
|
17b0f1 |
NoNewPrivileges=yes
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
PrivateTmp=yes
|
|
|
17b0f1 |
ProtectSystem=full
|
|
|
17b0f1 |
ProtectHome=yes
|
|
|
17b0f1 |
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
|
|
|
17b0f1 |
index 9d44622837..8575912bbd 100644
|
|
|
17b0f1 |
--- a/units/systemd-journald.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-journald.service.in
|
|
|
17b0f1 |
@@ -22,7 +22,7 @@ RestartSec=0
|
|
|
17b0f1 |
NotifyAccess=all
|
|
|
17b0f1 |
StandardOutput=null
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
|
|
|
17b0f1 |
# Increase the default a bit in order to allow many simultaneous
|
|
|
17b0f1 |
# services being run since we keep one fd open per service. Also, when
|
|
|
17b0f1 |
diff --git a/units/systemd-localed.service.in b/units/systemd-localed.service.in
|
|
|
17b0f1 |
index bfa097844f..9b13f901a3 100644
|
|
|
17b0f1 |
--- a/units/systemd-localed.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-localed.service.in
|
|
|
17b0f1 |
@@ -14,7 +14,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/localed
|
|
|
17b0f1 |
ExecStart=@rootlibexecdir@/systemd-localed
|
|
|
17b0f1 |
BusName=org.freedesktop.locale1
|
|
|
17b0f1 |
CapabilityBoundingSet=
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
PrivateTmp=yes
|
|
|
17b0f1 |
PrivateDevices=yes
|
|
|
17b0f1 |
PrivateNetwork=yes
|
|
|
17b0f1 |
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
|
|
|
17b0f1 |
index f087e99ce2..ff049134ee 100644
|
|
|
17b0f1 |
--- a/units/systemd-logind.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-logind.service.in
|
|
|
17b0f1 |
@@ -24,7 +24,7 @@ Restart=always
|
|
|
17b0f1 |
RestartSec=0
|
|
|
17b0f1 |
BusName=org.freedesktop.login1
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_MAC_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
|
|
|
17b0f1 |
# Increase the default a bit in order to allow many simultaneous
|
|
|
17b0f1 |
# logins since we keep one fd open per session.
|
|
|
17b0f1 |
diff --git a/units/systemd-machined.service.in b/units/systemd-machined.service.in
|
|
|
17b0f1 |
index 15f34d9db7..35cde98698 100644
|
|
|
17b0f1 |
--- a/units/systemd-machined.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-machined.service.in
|
|
|
17b0f1 |
@@ -16,7 +16,7 @@ After=machine.slice
|
|
|
17b0f1 |
ExecStart=@rootlibexecdir@/systemd-machined
|
|
|
17b0f1 |
BusName=org.freedesktop.machine1
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
PrivateTmp=yes
|
|
|
17b0f1 |
PrivateDevices=yes
|
|
|
17b0f1 |
PrivateNetwork=yes
|
|
|
17b0f1 |
diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in
|
|
|
17b0f1 |
index 5a91b8e499..d3808c430d 100644
|
|
|
17b0f1 |
--- a/units/systemd-networkd.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-networkd.service.in
|
|
|
17b0f1 |
@@ -25,7 +25,7 @@ ExecStart=@rootlibexecdir@/systemd-networkd
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
|
|
|
17b0f1 |
ProtectSystem=full
|
|
|
17b0f1 |
ProtectHome=yes
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
|
|
|
17b0f1 |
[Install]
|
|
|
17b0f1 |
WantedBy=multi-user.target
|
|
|
17b0f1 |
diff --git a/units/systemd-resolved.service.m4.in b/units/systemd-resolved.service.m4.in
|
|
|
17b0f1 |
index 98ae564af6..46864e6a33 100644
|
|
|
17b0f1 |
--- a/units/systemd-resolved.service.m4.in
|
|
|
17b0f1 |
+++ b/units/systemd-resolved.service.m4.in
|
|
|
17b0f1 |
@@ -25,7 +25,7 @@ ExecStart=@rootlibexecdir@/systemd-resolved
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
|
|
|
17b0f1 |
ProtectSystem=full
|
|
|
17b0f1 |
ProtectHome=yes
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
|
|
|
17b0f1 |
[Install]
|
|
|
17b0f1 |
WantedBy=multi-user.target
|
|
|
17b0f1 |
diff --git a/units/systemd-timedated.service.in b/units/systemd-timedated.service.in
|
|
|
17b0f1 |
index fe5ccb4601..0c9599db20 100644
|
|
|
17b0f1 |
--- a/units/systemd-timedated.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-timedated.service.in
|
|
|
17b0f1 |
@@ -14,7 +14,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/timedated
|
|
|
17b0f1 |
ExecStart=@rootlibexecdir@/systemd-timedated
|
|
|
17b0f1 |
BusName=org.freedesktop.timedate1
|
|
|
17b0f1 |
CapabilityBoundingSet=CAP_SYS_TIME
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
PrivateTmp=yes
|
|
|
17b0f1 |
ProtectSystem=yes
|
|
|
17b0f1 |
ProtectHome=yes
|
|
|
17b0f1 |
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in
|
|
|
17b0f1 |
index 39edafc8d2..c7d1d2b4fd 100644
|
|
|
17b0f1 |
--- a/units/systemd-timesyncd.service.in
|
|
|
17b0f1 |
+++ b/units/systemd-timesyncd.service.in
|
|
|
17b0f1 |
@@ -27,7 +27,7 @@ PrivateTmp=yes
|
|
|
17b0f1 |
PrivateDevices=yes
|
|
|
17b0f1 |
ProtectSystem=full
|
|
|
17b0f1 |
ProtectHome=yes
|
|
|
17b0f1 |
-WatchdogSec=1min
|
|
|
17b0f1 |
+WatchdogSec=3min
|
|
|
17b0f1 |
|
|
|
17b0f1 |
[Install]
|
|
|
17b0f1 |
WantedBy=sysinit.target
|