25.10.2019 22:21, Michael Hirmke пишет:
Hi *,
I need a place, where I can hook up a script that runs before a VPN connection goes down in case the system is suspended.
So far I tried to use - systemd/system-sleep/myscript -> is run before systems goes to sleep, but too late to handle connections, because NetworkManager has already stopped them all - NetworkManager/dispatcher.d/myscript NetworkManager/dispatcher.d/pre-[up|down]myscript -> is run, but vpn-pre-down is never called
Which fully agrees with documentation. Scripts acting on this event must be placed or symlinked into the /etc/NetworkManager/dispatcher.d/pre-down.d directory
when the system goes to sleep; even worse, the vpn connection is stopped *after* the underlying interface has been disconnected
So where to put such a script?
Latest Tmbleweed snapshot with NM 1.18.4.
TIA.
Bye. Michael.
-- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org