GNOME Bugzilla – Bug 703821
Pass --pidfile argument when invoking vpnc binary (patch attached)
Last modified: 2013-08-12 21:23:00 UTC
Created attachment 248659 [details] [review] From git format-patch based on a4d87fc2bb41995e7d18522f80b8e76b0603073e The vpnc binary seems to hardcode /var/run/vpnc/ as its pid dir, which is created if vpnc is started using its included script in $sysconfdir/vpnc/ - however, if it's started by NM-vpnc, syslog shows "can't open pidfile /var/run/vpnc/pid for writing" Fix that by using $localstatedir/run/NetworkManager/ as piddir.
We'll want to suffix the pid file with the connection UUID and possibly some other unique timestamp too though, otherwise one nm-vpnc-service process would step on another when we support multiple concurrent VPN connections.
+1
Created attachment 249430 [details] [review] enhanced from c1 After much help from Dan and many failed compiles, here's a better patch that addresses the issues in comment #1.
Pushed with a small cleanup or two, thanks!