You are not logged in.
I have a probably buggy openvpn configuration which gets broken after resume from suspend. I have not been able to understand what's wrong with it (maybe the network interface going down and up during suspend and resume screws it), so I decide to try to workaround it by restarting the service after resume. I found how to do this by creating a restart service for the openvpn service, but since my vpn connection is configured with auth-user-pass I have to retype username and password when the service is restarted. Is there a way to avoid this, so that after starting the vpn for the first time I don't have to retype the credentials when resuming from suspend?
Offline
The openvpn --auth-user-pass option lets you specify a file with user/pass (see man). You could do that for your workaround and chmod 600 it.
Offline
Thanks Strike0, that works perfectly!
Offline