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:
parent
51018ed1c2
commit
51a417cc40
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user