Skip to content

Instantly share code, notes, and snippets.

@joeymink
Created February 26, 2014 13:38
Show Gist options
  • Save joeymink/9229603 to your computer and use it in GitHub Desktop.
Save joeymink/9229603 to your computer and use it in GitHub Desktop.
openvpn client startup script
# OpenVPN autostart on boot script
# Originally by Jan:
# http://www.hackerway.ch/2012/12/11/how-to-auto-start-openvpn-client-in-debian-6-and-ubuntu-12-04/
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/sbin/openvpn --status /var/run/openvpn.client.status 10 --cd /etc/openvpn --config /etc/openvpn/client.conf --syslog openvpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment