Mavproxy not starting at the boot of Raspberry-Pi

I have modded the rc.local to start mavproxy at the boot up but it isn’t working. Please help asap

For what it’s worth, I’m starting mavproxy automatically on my RPi, but not at boot. Instead I’m starting it upon log in to a windowing session. I edited /etc/xdg/lxsession/LXDE-pi/autostart to automatically run a shell script when starting a windowing session, like this:

@lxterminal -e /home/pi/

and then in the shell script file /home/pi/ I have the commands necessary to start mavproxy. Which for me are:

cd /home/pi/MAVProxy

Easiest/best way to start any program at boot is as following.

  1. Create “mavproxy_startup” file like attached file( Don’t change the header. Also filename should NOT have .sh extension
  2. Copy this file to /etc/init.d
  3. run command “sudo update-rc.d mavproxy_startup defaults”
  4. From next boot it will start automatically.

the link you posted is not working. Can you please help? @Sachchit I am having trouble starting the mavproxy from crontab. ps aux | grep shows a process running at every reboot. Cron job is supposed to start a udp port which is not happening