summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorLucas Kanashiro <lucas.kanashiro@canonical.com>2020-05-26 16:45:10 -0300
committerBernhard Schmidt <berni@debian.org>2020-09-01 01:17:53 +0200
commit69b02b1f7fd609d84ace13ab04697158de2418a9 (patch)
tree29fcc8654ee65d9dd89ade797bea2f3d9dfd9cfd /debian
parent68cf7e194033449b6c02fde1413875a597861c19 (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.
Diffstat (limited to 'debian')
-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