Wirehead
I have tried searching the forum but haven't come up with a post that seems related to this.
Basically, I need a standards-compliant startup script for openvpn - the one supplied in the rpm for 2.2.2-1.el6.x86_64 has several issues, including incorrect return codes for various conditions as well as that if you issue "service openvpn start" when openvpn is already running, it actually kills and restarts all running openvpn processes which is not ideal.
I'm hoping that someone has already run into this and come up with a simple LSB-compliant init script for openvpn - anyone?
Aside from the issue with "start" nuking running processes, I need this because the "status" return codes all seem to return "0" unless there has been a normal shutdown (i.e. if the process has died for some reason, but the lock files etc still exist, you get a "status written to /var/log/messages" and "0" return code). I need valid return codes so that my cluster monitor (pacemaker) can keep an eye on the status of the service.
If nobody has anything like this, I can just write one, but I'm hoping to avoid that.
Thanks in advance for any help you might give.