balena-supervisor/tools/dind/config/services/openvpn-resin.service

15 lines
410 B
SYSTEMD
Raw Normal View History

[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