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.
- sudo crontab -e
- If prompted for an editor, choose Nano (#2)
- At the bottom, paste in the following
- */5 * * * * flock -n /tmp/terrarium.lock /usr/bin/python3 /home/pi/terrarium/main.py