centos 6 server 64 bit
openvpn-2.3.2-1.x86_64
I'm running openvpn as a client on a centos machine and it connects to a vpn service on the internet. I've written a short script that enables openvpn to startup and logon automatically at machine bootup. It works but there's one small snag - the program starts fine and logs on but the console says 'Failed' in red letters, and yet the vpn connection is up and all is working properly. I usually get a green 'OK' when login works.
in /etc/client conf I have
auth-user-pass login.conf
and in login.conf I have just:
<my username>
<my password>
This is my /etc/startup.sh script:
#!/bin/sh
#
echo "starting openvpn."
sleep 1
/etc/init.d/openvpn start
exit 0
/var/log/boot.log shows this:
Starting openvpn: ^[[60G[^[[0;31mFAILED^[[0;39m]
and yet the vpn tunnel is up and working fine, it would be more reassuring to see the green 'OK' in the console if that possible. Thanks for any advice.