The vpnc script is made in a way that allows running multiple services. You symlink /etc/init.d/vpnc to /etc/init.d/vpnc.first and /etc/init.d/vpnc.second and create the configuration files /etc/vpnc/first.conf and /etc/vpnc/second.conf and you have two independent vpnc services. However, if you issue a stop command to either of them, both are stopped. That is because the service script calls: start-stop-daemon --stop --exec /usr/sbin/vpnc --pidfile "${VPNPID}" According to the manual of start-stop-daemon the --exec option stands for "Check for processes that are instances of this executable (according to /proc/ pid /exe )". That applies to both of them. Removing that part fixes the problem. Reproducible: Always Steps to Reproduce: 1. Create two independent vpnc configurations and start scripts 2. Start both 3. Stop one of them Actual Results: Both daemons get stopped. Expected Results: Only the daemon specified gets stopped.
Created attachment 224657 [details, diff] Patch against the /etc/init.d/vpnc to fix the problem.
Thanks for your patch and report. This is fixed in CVS.