openvpn: Always restart the OpenVPN service

We want the OpenVPN service to be always restarted. I am not sure
how "forking" and restart will work together but we will need to
give it a try.
This commit is contained in:
Holger Hans Peter Freyther 2014-11-22 00:05:29 +01:00
parent 6909960948
commit f7004f3315
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ 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
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target

View File

@ -7,6 +7,8 @@ DEPENDS = "lzo openssl iproute2 ${@base_contains('DISTRO_FEATURES', 'pam', 'libp
inherit autotools
PR = "r1"
SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \
file://openvpn \
file://openvpn-generator \