Viitor_openvpn/usr/share/doc/openvpn/Viitor/init/openvpn-client-..servername...conf
segler 5dfc2cae9c add some example files and description how to bring openvpn into boot
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_openvpn@5950 504e572c-2e33-0410-9681-be2bf7408885
2011-01-26 07:21:02 +00:00

21 lines
543 B
Plaintext

description "openvpn daemons startup"
author "Michael Freitag <Michael.Freitag@freitag-it.de>"
version 1.1
emits none special
start on (runlevel [2345] and (started rpc))
stop on runlevel [016]
console none
chdir /etc/sysconfig/net/openvpn/
pre-start script
modprobe tun
if [ ! -d /dev/net ]; then
mkdir /dev/net
fi
rm -f /dev/net/tun && mknod /dev/net/tun c 10 200
end script
exec /usr/sbin/openvpn --config client-<SERVERNAME>.conf