Restart of vpnc when not requested to stop.
Bug #249802 reported by
Tim Jones
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vpnc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vpnc
Although an incredibly useful app vpnc isn't (yet) perfect and is known to just drop it's connection and die at times. This is a known problem, with no known solution, yet. But in the meantime...
How about an option to auto-restart vpnc when it dies?
The conditions, as far as I can tell, for a restart to happen would simply be: If vpnc exits with exit code 0 and has not been requested to stop, then restart it.
Currently I need to use a script running in the background to do this for me as vpnc dies many times during a working day. Setting local port to 0 and disabling DPD are also needed here too (see bug #206000 bug #112406 bug #239570).
To post a comment you must log in.
Yep, i noticed too that vpnc looses quite often it's connection. What I've got in my mind is some kind of process monitor. Like
$ foo vpnc start --respawn
$ foo vpnc stop
When i start vpnc with `foo vpnc start --respawn` it get's restarted until i quit it with `foo vpnc stop`. There are some process monitors like restartd etc. out there, but they need to be configured via configuration files. Afaik there is no simple process monitor like the one i've got in my mind.