Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have Centos servers running multiple daemons, up to 3 on each server. I have looked at the the rc.d init scripts and see no way to control the daemons independently. We would really like to be able to restart one tunnel without affecting the others. Is this possible? Where should we be looking?

share|improve this question
up vote 6 down vote accepted

The initscripts in Debian and Ubuntu for openvpn allow single instances to be managed by naming them on the command like:

/etc/init.d/openvpn start vpn_name_1


/etc/init.d/openvpn stop vpn_name_2

If the script(s) that come with the CentOS openvpn package do not support this then you could perhaps copy the logic from the versions in Debian/Ubuntu (don't copy the whole script though as there may be other distro specific differences to worry about).

share|improve this answer

We run 3 OpenVPN instances in our setup, and we just use:

/usr/local/sbin/openvpn /etc/openvpn/1.conf &
/usr/local/sbin/openvpn /etc/openvpn/2.conf &
/usr/local/sbin/openvpn /etc/openvpn/3.conf &

Of course each instance is running on a different port and has different settings and then you can kill each instance separately and start them up without affecting the others.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.