Run at startup - matt65/Lizard GitHub Wiki

I have used the below to make the Terrarium script run at startup, and ensure it is running all the time.

  1. sudo crontab -e
  2. If prompted for an editor, choose Nano (#2)
  3. At the bottom, paste in the following
  4. */5 * * * * flock -n /tmp/terrarium.lock /usr/bin/python3 /home/pi/terrarium/main.py