Hi, there's probably a simple resolution, but I can't find it anywhere.
My setup is:
I'm starting openvpn on Raspberry Pi's rc.local file, by executing:
sudo openvpn --config ConfigFile.conf
The ConfigFile.conf contains an
up and
down scripts, which start and stop a torrent client (I don't want it running when the VPN is down).
How can I stop the openvpn instance, so that the
down script is executed? When I kill the process, nothing happens and my torrent client is still active.
When I manually execute
sudo openvpn --config (...), it blocks the terminal, so when I hit Ctrl+C, both the torrent client and openvpn stop.
Thanks in advance!