openvpn: bring back "openvpn@.service"
Restore "openvpn@.service" from packaging of openvpn 2.3.6, so we can start the sysmocom vpn the same way as currently described in the manuals. Previous patch8439e71a99
already attempted to do this, but only brought back "openvpn.service" and not "openvpn@.service". Fixes:8439e71a
("openvpn: bring back openvpn.service file") Related: SYS#6303 Change-Id: I28a7f491d74690409f815555743679c69e31b518
This commit is contained in:
parent
9c9857bc26
commit
416d81c4ab
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=OpenVPN connection to %i
|
||||
PartOf=openvpn.service
|
||||
ReloadPropagatedFrom=openvpn.service
|
||||
|
||||
[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
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
|
@ -7,11 +7,12 @@ DEPENDS = "lzo openssl iproute2 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '
|
|||
|
||||
inherit autotools systemd update-rc.d pkgconfig
|
||||
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \
|
||||
file://0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch \
|
||||
file://openvpn \
|
||||
file://openvpn@.service \
|
||||
file://openvpn.service \
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in New Issue