Page 1 of 1

How to start deluge after openvpn connect successfully?

Posted: Thu Dec 05, 2019 2:07 pm
by Garu94
Hi,
I would like to start deluge at boot, but I would like to make it start after openvpn successfully connected to nordvpn vpn, any clue?

Re: How to start deluge after openvpn connect successfully?

Posted: Thu Dec 05, 2019 2:21 pm
by mhertz
Matter of taste, really...

Either just enable openvpn and deluged to start at boot, and use iptables to lock down the deluged connectivity, optionally changing deluged's systemd service file to make deluged start after openvpn. Or, set deluged to be run from the UP directive of openvpn config. There's
i
several other more "unstandard" methods, so a little hard to answer, when so many answer-variations available.

I'd suggest reading through this thread, with lots of talk and solutions in detail on this: viewtopic.php?t=49883

Re: How to start deluge after openvpn connect successfully?

Posted: Thu Dec 05, 2019 3:47 pm
by Garu94
Thank you for the link, I will go through it as soon as I have time!
What I think I would like to do (I am still pretty new to Linux services) is to setup a service that start openvpn and another one that starts deluged only when the other has finished, but before implementing a non-working service I would like to know if there is something I need to know specific to deluged service or openvpn service, or the combination of the two.

Re: How to start deluge after openvpn connect successfully?

Posted: Thu Dec 05, 2019 3:54 pm
by gderf
There are several dockers available that have been designed to do explicitly what you are looking for.

https://www.google.com/search?sxsrf=ACY ... 17m8J83r0k