Re: [Fish-users] How to use functions with --on-signal properly?
Status: Beta
Brought to you by:
liljencrantz
|
From: Tassilo H. <ts...@gn...> - 2020-07-24 19:33:34
|
Johannes Altmanninger <ac...@gm...> writes: Hi Johannes, >> So I want some mechanism to umount those shares _before_ the VPN >> connection is closed. > > Suspend or hibernate in place of a full shutdown might avoid this > problem. No, the connection will be reset on the server side if it doesn't get keep-alives for some time. And even if it would reconnect afterwards, I'll probably get a different IP. > Integrating the scripts in your system's service manager seems like > the proper solution. By specifying the mounts' dependency on > openconnect this could probably be automated nicely. Yes, at least in theory. In practice, connecting to the VPN is an interactive business with typing in two-factor authentication codes... So I'll take the POSIX trap approach. Bye, Tassilo |