mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 08:21:07 +00:00
15 lines
410 B
SYSTEMD
15 lines
410 B
SYSTEMD
|
[Unit]
|
||
|
Description=OpenVPN Application On Resin
|
||
|
Wants=prepare-openvpn.service
|
||
|
After=syslog.target network.target prepare-openvpn.service
|
||
|
|
||
|
[Service]
|
||
|
PrivateTmp=true
|
||
|
Type=forking
|
||
|
PIDFile=/var/run/openvpn/resin.pid
|
||
|
ExecStartPre=-/bin/mkdir -p /var/run/openvpn
|
||
|
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/resin.pid --cd /etc/openvpn/ --config client.conf
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|