Skip to content
Dayne Broderson edited this page Oct 14, 2021 · 4 revisions

You may want something to launch automatically on boot. The Raspberry Pi is a Linux system and has many different places you can use to configure things to launch on boot.

Some of the options:

  • /etc/rc.local - edit the file and add what you want before the exit line
  • crontab - The root user can use the @reboot line to autolaunch something.
  • systemd - the proper way of launching and managing (stop, start, restart, status) a command.
  • /home/pi/.config/lxsession/LXDE-pi/autostart - launch an app in the desktop environment.
    • append to end of the autostart lines like: @lxterminal -e /home/pi/bin/launch_script.sh to run a script in a terminal.
  • supervisord example

Clone this wiki locally