[Unit] Description=OpenVPN tunnel for %I (obsolete: use openvpn-client@ or openvpn-server@) After=syslog.target network-online.target Wants=network-online.target Documentation=man:openvpn(8) Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO [Service] Type=forking PrivateTmp=true ExecStart=/usr/sbin/openvpn --daemon --writepid /run/openvpn/%i.pid --cd /etc/openvpn --config %i.conf PIDFile=/run/openvpn/%i.pid [Install] WantedBy=multi-user.target