Skip to content

Instantly share code, notes, and snippets.

@d1b
Created April 15, 2015 13:58
Show Gist options
  • Save d1b/de770e35cef845392083 to your computer and use it in GitHub Desktop.
Save d1b/de770e35cef845392083 to your computer and use it in GitHub Desktop.
openvpn upstart
description "openvpn client service instance"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
expect fork
#console output
pre-start script
mkdir -p /run/openvpn
end script
script
exec /usr/sbin/openvpn --writepid /run/openvpn/client.pid --daemon ovpn-client --status /run/openvpn/client.status 10 --cd /etc/openvpn --config /etc/openvpn/client.conf --script-security 2
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment