From f72546da03e9be9f1a362fabfbcee2e86853886f Mon Sep 17 00:00:00 2001 From: Francois Marier Date: Sat, 6 Jul 2019 15:00:14 -0700 Subject: [PATCH 1/2] Restart fwknop-server on failure Right now, when network interfaces go down and then back up (e.g. undocking and re-docking a laptop), fwknop-server dies and can no longer be used to open the firewall. This causes the daemon to restart when it fails for any reason other than normal shutdowns/restarts. --- extras/systemd/fwknopd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/systemd/fwknopd.service b/extras/systemd/fwknopd.service index d2e8c312..f636ff11 100644 --- a/extras/systemd/fwknopd.service +++ b/extras/systemd/fwknopd.service @@ -7,6 +7,7 @@ Type=forking PIDFile=/run/fwknop/fwknopd.pid ExecStart=/usr/sbin/fwknopd ExecReload=/bin/kill -HUP $MAINPID +Restart=onfailure [Install] WantedBy=multi-user.target From b4652ced7b3ce3ab5d88d8d78f19f9f0a85da1f6 Mon Sep 17 00:00:00 2001 From: Francois Marier Date: Mon, 8 Jul 2019 13:19:17 -0700 Subject: [PATCH 2/2] Fix typo --- extras/systemd/fwknopd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/systemd/fwknopd.service b/extras/systemd/fwknopd.service index f636ff11..28d024d4 100644 --- a/extras/systemd/fwknopd.service +++ b/extras/systemd/fwknopd.service @@ -7,7 +7,7 @@ Type=forking PIDFile=/run/fwknop/fwknopd.pid ExecStart=/usr/sbin/fwknopd ExecReload=/bin/kill -HUP $MAINPID -Restart=onfailure +Restart=on-failure [Install] WantedBy=multi-user.target