summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Kanashiro <lucas.kanashiro@canonical.com>2020-05-26 16:45:10 -0300
committerLucas Kanashiro <lucas.kanashiro@canonical.com>2020-05-26 18:53:11 -0300
commit95596798b96b4fb78c4e17ca3880cecb6bd84078 (patch)
tree1384c1a3eaae80b4235e99989fab75aa7940081e
parente385682719c2c6215022bcfa9ae0ddc6a593db5d (diff)
Drop reload support from systemd unit files (LP: #1868127)
The current reload implementation (sending a SIGHUP signal to the process) fails, and the difference between reload and restart is not clear. Systemd does not require an implementation for reload.
-rw-r--r--debian/openvpn.service1
-rw-r--r--debian/openvpn@.service2
2 files changed, 0 insertions, 3 deletions
diff --git a/debian/openvpn.service b/debian/openvpn.service
index 0075cc4..a4d1149 100644
--- a/debian/openvpn.service
+++ b/debian/openvpn.service
@@ -9,7 +9,6 @@ After=network.target
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
-ExecReload=/bin/true
WorkingDirectory=/etc/openvpn
[Install]
diff --git a/debian/openvpn@.service b/debian/openvpn@.service
index da7adc7..945874b 100644
--- a/debian/openvpn@.service
+++ b/debian/openvpn@.service
@@ -1,7 +1,6 @@
[Unit]
Description=OpenVPN connection to %i
PartOf=openvpn.service
-ReloadPropagatedFrom=openvpn.service
Before=systemd-user-sessions.service
After=network-online.target
Wants=network-online.target
@@ -16,7 +15,6 @@ WorkingDirectory=/etc/openvpn
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid
PIDFile=/run/openvpn/%i.pid
KillMode=process
-ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE
LimitNPROC=100
DeviceAllow=/dev/null rw