|
From: James K. <jke...@gm...> - 2010-08-30 17:49:52
|
I want openvpn to start as a deamon at startup. I wrote a small sh file that I want to execute when Devil starts up. ------------------------------------------------------------------------------------------------------------------------------- This is the sh file: #!/bin/sh cd /etc/openvpn/ openvpn --daemon --config /etc/openvpn/openvpn.conf --log /etc/mnt/hd/log/openvpn.log ------------------------------------------------------------------------------------------------------------------------------- I made an entry in boot.local that points to that sh file. This is the entry: /etc/openvpn/openvpnStart.sh ------------------------------------------------------------------------------------------------------------------------------- My openvpn.log is giving me this error: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) Attempting fallback to kernel 2.2 TUN/TAP interface Cannot allocate TUN/TAP dev dynamically ------------------------------------------------------------------------------------------------------------------------------- If I execute the command: openvpn --daemon --config /etc/openvpn/openvpn.conf --log /etc/mnt/hd/log/openvpn.log After the system boots up, it executes correctly and without issues. Is there something I am missing? Am I pointing to the sh file incorrectly in boot.local? Should it be elsewhere? Any and all help is welcome. Thanks! -- James E. Kessler |