Posted: Wed Jun 03, 2015 8:47 Post subject: R7000 - Startup Commands OpenVPN + Yamon2
Hey guys,
I currently have an issue with my StartUP Commands on my R7000 router working with both OpenVPN + Yamon2
Here is the configuration that I have.
************************************************
echo username >> /tmp/password.txt
echo password >> /tmp/password.txt
/usr/bin/killall openvpn
/usr/sbin/openvpn --config /tmp/openvpncl/openvpn.conf --route-up /tmp/openvpncl/route-up.sh --down-pre /tmp/openvpncl/route-down.sh --daemon
/opt/YAMon2/Setup/yamon.startup
***********************************************
Now with those commands my OpenVPN will work on reboot, but my Yamon will not have started. If I run the command manually: /opt/YAMon2/Setup/yamon.startup it will work, just not part of the scripted startup.
As I am rather new to all this any help would be greatly appreciated.
P.S I have tried putting a '&' after --daemon to try and force the release of the terminal and I have tried running the yamon.startup commands first to no avail.
After some expermentation I have a 50 second sleep command inserted before YAmon to allow the router to finish booting and everything to settle.
Works fine here. _________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Joined: 25 Dec 2010 Posts: 295 Location: Twin Cities, MN
Posted: Wed Jun 03, 2015 17:44 Post subject:
ddaniel51 wrote:
After some expermentation I have a 50 second sleep command inserted before YAmon to allow the router to finish booting and everything to settle.
Works fine here.
sleep 20 works for me _________________ NETGEAR R9000 | RT | 40134 NETGEAR R7800 | AP | 40134
I have tried sleep 100, 50, 20 etc. I don't think that it is a sleep issue but more of the OpenVPN configuration not releasing control for another command to be run.
If I don't have the OpenVPN configuration in the startup it works fine. So not knowing enough about the scripting language I need to either release control of the shell after the --daemon command or run the yamon.startup script as a separate process instance.
My startup only have "........../yamon2.startup". OVPN is configured entirely in its own tab.
Sure, there are some firewall policies in ADM > COMMANDS > FIREWALL.
Your problem may be related to this. Or something related to Build. I´m using Build 25974.
Also, note that there is a "sleep" inside "yamon2.startup".