summaryrefslogtreecommitdiff
path: root/debian/openvpn.service
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-09-12 12:52:30 +0200
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-09-12 13:44:57 +0200
commit1f5bd7321e8029fa05f9e7f46a9a9a2e7568656f (patch)
treecde9313180cb2cf579556caa6fca5d6bdebbb96a /debian/openvpn.service
parent98f974e98ad20013e5dc7cede60fcacf72524cee (diff)
First works to improve systemd integration
Add openvpn-generator to mimic AUTOSTART feature from SysV init script
Diffstat (limited to 'debian/openvpn.service')
-rw-r--r--debian/openvpn.service8
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/openvpn.service b/debian/openvpn.service
index b76e36e..e1d49a8 100644
--- a/debian/openvpn.service
+++ b/debian/openvpn.service
@@ -1,3 +1,6 @@
+# This service is actually a systemd target,
+# but we are using a service since targets cannot be reloaded.
+
[Unit]
Description=OpenVPN service
After=network.target
@@ -5,9 +8,8 @@ After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/sbin/openvpn-systemd-helper start
-ExecStop=/usr/sbin/openvpn-systemd-helper stop
-ExecReload=/usr/sbin/openvpn-systemd-helper reload
+ExecStart=/bin/true
+ExecStop=/bin/true
WorkingDirectory=/etc/openvpn
[Install]