[clue] OpenVPN

Kevin Fenzi kevin at scrye.com
Sun Nov 6 13:59:07 MST 2011


On Sun, 6 Nov 2011 13:52:45 -0700
Will <will.sterling at gmail.com> wrote:

> I have an odd error occurring when I try to start OpenVPN using the
> /etc/init.d/openvn script.  If I run it as root "/etc/init.d/openvpn
> start" it fails to start.  If I run "bash /etc/init.d/openvpn start"
> it starts just fine.  I've added -x to the #! line and I know it is
> failing when starting the daemon but when I run the same command
> manually it start just fine.
> 
> I get the following error in syslog, but obviously the config file is
> readable as it can be started manually.
> 
> Nov  6 13:12:13 loki openvpn[1494]: Options error: In [CMD-LINE]:1:
> Error opening configuration file: /etc/openvpn/pogo.conf

What OS is this? If it's a RHEL/CentOS/Fedora variant, it could be a
selinux issue. 

Try: 

restorecon -Rv /etc/openvpn/

to give the config file the right context. 

kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://cluedenver.org/pipermail/clue/attachments/20111106/8979bf1a/attachment.bin 


More information about the clue mailing list