Skip to content

Instantly share code, notes, and snippets.

@blindFS
Created July 14, 2014 06:05
Show Gist options
  • Save blindFS/2f4712a7523b63765d4d to your computer and use it in GitHub Desktop.
Save blindFS/2f4712a7523b63765d4d to your computer and use it in GitHub Desktop.
[Unit]
Description=OpenVPN connection to %i
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid
PIDFile=/run/openvpn@%i.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment