I'm running OpenVPN as an upstart script on Ubuntu Server 14.04 LTS. I have an openvpn.conf file in the /etc/init/ folder.
It works perfectly, OpenVPN starts on system start and connects to VPN server. However, I also run Deluge and some other services that I need explicitly to allow connection to Internet only through VPN. Deluged is also started as with an upstart script, and actually it is working perfectly fine.
One thing I'm not sure: what is the sequence of of starting these services during the system start? I need OpenVPN to start before Deluge service. I really read a lot about start-on parameters, but I'm not sure if it is enough to put this into the upstart script.
I see a similar questions here: LINK According to this, it can not be done with upstart script, only if I use a "wait script"?
What do I need to put in openvpn.conf and deluged.conf upstart scripts to make this work?
Many thanks!