[opensuse-support] VPN, NetworkManager, suspend
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 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. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
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
Hi Andrei,
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
that is what I wanted to say - it isn't executed despite the fact, that it is symlinked to pre-down.d. It should read - NetworkManager/dispatcher.d/myscript NetworkManager/dispatcher.d/pre-[up|down].d/myscript ^^^ Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
mh@mike.franken.de