summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-04-01 17:26:39 +0200
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-04-01 17:26:39 +0200
commit72eb879255b983286b83678fd62228187fbedbb2 (patch)
treec49602b3fbf2883cd92eb478dc5f4456007a279c
parent71a68b82b1d655c286461cfb618176c0b85f7265 (diff)
Add reload to systemd instance unit
-rw-r--r--debian/changelog1
-rw-r--r--debian/openvpn@.service1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 1bc43c1..93856b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ openvpn (2.3.2-10) UNRELEASED; urgency=medium
* Install tmpfiles.d configuration to create /run/openvpn in
systemd.
+ * Add reload to openvpn@.service.
-- Alberto Gonzalez Iniesta <agi@inittab.org> Mon, 17 Mar 2014 19:40:12 +0100
diff --git a/debian/openvpn@.service b/debian/openvpn@.service
index a7ec1ee..a6834da 100644
--- a/debian/openvpn@.service
+++ b/debian/openvpn@.service
@@ -5,6 +5,7 @@ After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf
+ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/etc/openvpn
[Install]