mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 01:58:54 +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
|