21 lines
543 B
Plaintext
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
|