Skip to content

Instantly share code, notes, and snippets.

@sigwinch28
Created February 17, 2015 14:54
Show Gist options
  • Save sigwinch28/85cff4b93117fbc139f4 to your computer and use it in GitHub Desktop.
Save sigwinch28/85cff4b93117fbc139f4 to your computer and use it in GitHub Desktop.
[Unit]
Description=OpenVPN connection to %i
[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