Hello everybody,
I´m using Deluge latest version in Classic Mode (on XFCE) with Kali Linux (https://www.kali.org) and a VPN Provider who
offer a Netblocker Script, so every traffic runs only when VPN is active (https://zorrovpn.com/howto/openvpn/netblocker-linux).
This script works good for me, if connection is lost all traffic stopped. I´m using the connection manager with open vpn.
Now I`m using an another script checking VPN connection is running:
https://gist.github.com/antoniy/f925ae55410a092c9e75
If VPN not runs, it will reconnect, but Deluge GTK won`t continue with traffic.
So now I think its the best way killing Deluge and start it again, may using the above script?!
Killing works, but not the restart. I get a lot of phyton errors Starting manually with terminal works, but not with the above script.
I`m working as normal user allowed to use sudo - Sorry, I´m new to scripting and Linux.