Skip to content

Provide the vpnc-script with our PID (as $VPNPID)

Daniel Lenski requested to merge set_VPNPID_for_vpnc_script into master

This will enable a vpnc-script to more easily identify which VPN connection is calling it, in the case of multiple concurrent or "stacked" VPN connections.

Because OpenConnect (and vpnc) invoke the vpnc-script via an intermediate shell process, the vpnc-script would otherwise need to determine its GRANDparent PID, which is an error-prone, and not easily portable, process. See vpnc-scripts#28 (closed) and vpnc-scripts!36 (merged) for issues with the current approaches.

Merge request reports