From a97dcc12e486ecff531809802930a26c4da827f2 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 4 Feb 2015 15:00:20 +0100 Subject: networkd: exit on idle We will be woken up on rtnl or dbus activity, so let's just quit if some time has passed and that is the only thing that can happen. Note that we will always stay around if we expect network activity (e.g. DHCP is enabled), as we are not restarted on that. --- units/systemd-networkd.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'units/systemd-networkd.service.in') diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index fab278e92c..5a91b8e499 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -19,7 +19,7 @@ Wants=network.target [Service] Type=notify -Restart=always +Restart=on-failure RestartSec=0 ExecStart=@rootlibexecdir@/systemd-networkd 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 -- cgit v1.2.3