Servers by jDrones

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/mmp.sh

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

PYTHONPATH=/home/pi/MAVProxy
export PYTHONPATH
cd /home/pi/MAVProxy
MAVProxy/mavproxy.py

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

  1. Create “mavproxy_startup” file like attached file(https://docs.zoho.com/file/jjd2ud3901e9bbb6d4876929e541573a66e4b). 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.
Servers by jDrones