summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-15 21:19:51 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-17 20:41:25 +0100
commitb618790b9e5ab51e5d4f65e6756fedca70882cba (patch)
tree52dc270d4017ac9a4eabd0a7f73e711e580f944f /src/etc/systemd/system
parent50a1b4a1170182864760613216b68322f165a749 (diff)
downloadvyos-1x-b618790b9e5ab51e5d4f65e6756fedca70882cba.tar.gz
vyos-1x-b618790b9e5ab51e5d4f65e6756fedca70882cba.zip
openvpn: T3995: implement systemd reload support
(cherry picked from commit eceaa3a787929f5a514b9c45da52936c0d4d4a54)
Diffstat (limited to 'src/etc/systemd/system')
-rw-r--r--src/etc/systemd/system/openvpn@.service.d/10-override.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/systemd/system/openvpn@.service.d/10-override.conf b/src/etc/systemd/system/openvpn@.service.d/10-override.conf
index 03fe6b587..775a2d7ba 100644
--- a/src/etc/systemd/system/openvpn@.service.d/10-override.conf
+++ b/src/etc/systemd/system/openvpn@.service.d/10-override.conf
@@ -7,6 +7,7 @@ WorkingDirectory=
WorkingDirectory=/run/openvpn
ExecStart=
ExecStart=/usr/sbin/openvpn --daemon openvpn-%i --config %i.conf --status %i.status 30 --writepid %i.pid
+ExecReload=/bin/kill -HUP $MAINPID
User=openvpn
Group=openvpn
AmbientCapabilities=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