summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-01 16:23:19 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-02 14:01:42 +0200
commitab76be55819268968c0a987bf187db9568e09dbd (patch)
tree20fce0684e3b9016f9a7acad978834d2ea94ded5 /units
parent4ab1670f3de2debb5fd373ab3320925eccfc417d (diff)
downloadsystemd-ab76be55819268968c0a987bf187db9568e09dbd.tar.gz
systemd-ab76be55819268968c0a987bf187db9568e09dbd.tar.bz2
systemd-ab76be55819268968c0a987bf187db9568e09dbd.zip
networkd: use SIGUSR2 to do a restart
The code supports SIGTERM and SIGINT to termiante the process. It would be possible to reporpose one of those signals for the restart operation, but I think it's better to use a completely different signal to avoid misunderstandings.
Diffstat (limited to 'units')
-rw-r--r--units/systemd-networkd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in
index 9ea3bb914e..5c6275e5b3 100644
--- a/units/systemd-networkd.service.in
+++ b/units/systemd-networkd.service.in
@@ -42,6 +42,7 @@ SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
Type=notify
+RestartKillSignal=SIGUSR2
User=systemd-network
WatchdogSec=3min