I have a script in
/etc/network/if-up.d to connect to my VPN on startup. It appears that the script is running three times and therefore connecting to my VPN three times. After startup, looking at
sudo ifconfig verifies that, in fact, three tunnels have been created. Also, I can see all three openvpn daemons when looking at the output from
ps aux. How do I make sure it only runs once? And why is it running more than once? I am running Debian 7.3.
The contents of
#!/bin/sh /usr/sbin/openvpn --daemon --keepalive 5 30 --config /etc/openvpn/configs/bitterroot.conf
Thank you for your help! Jeff