Created
April 15, 2015 13:58
-
-
Save d1b/de770e35cef845392083 to your computer and use it in GitHub Desktop.
openvpn upstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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