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:
parent
6909960948
commit
f7004f3315
|
@ -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
|
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
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
WorkingDirectory=/etc/openvpn
|
WorkingDirectory=/etc/openvpn
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -7,6 +7,8 @@ DEPENDS = "lzo openssl iproute2 ${@base_contains('DISTRO_FEATURES', 'pam', 'libp
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools
|
||||||
|
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \
|
SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \
|
||||||
file://openvpn \
|
file://openvpn \
|
||||||
file://openvpn-generator \
|
file://openvpn-generator \
|
||||||
|
|
Loading…
Reference in New Issue