From 1f5bd7321e8029fa05f9e7f46a9a9a2e7568656f Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Iniesta Date: Fri, 12 Sep 2014 12:52:30 +0200 Subject: First works to improve systemd integration Add openvpn-generator to mimic AUTOSTART feature from SysV init script --- debian/openvpn.service | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'debian/openvpn.service') 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] -- cgit v1.2.3