1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

units: Drop Restart=always from resolved and timesyncd

We don't expect these to fail. If they do, let's make sure to surface
those errors rather than hiding them by immediately restarting.

Additionally, if these services start crashing in a loop, this makes
sure that we don't flood the system with coredumps.
This commit is contained in:
Daan De Meyer 2024-06-03 12:50:15 +02:00
parent 51018ed1c2
commit 51a417cc40
3 changed files with 0 additions and 6 deletions

View File

@ -22,8 +22,6 @@ Wants=nss-lookup.target
[Service]
Type=notify
Restart=always
RestartSec=0
ExecStart=!!/usr/lib/systemd/systemd-resolved
WatchdogSec=3min
User=systemd-resolve

View File

@ -37,8 +37,6 @@ ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=strict
Restart=always
RestartSec=0
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes

View File

@ -40,8 +40,6 @@ ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=strict
Restart=always
RestartSec=0
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes