This article
includes setup instructions for the Raspberry Pi camera, but doesn't capture setting it up as a service
(even though a few lines up it sets up OctoPrint as a service), and instead provides a pair of
relatively-complex scripts to be run at startup via /etc/rc.local.
- copy
webcam.shto themjpg-streamerdirectory (or wherever you'd like, just update theMJPG_DIRvariable) - copy
pi-webcam.serviceto/etc/systemd/system/(requiressudo), ensureExecStartpoints to the correct path - Register the service with
sudo systemctl enable pi-webcam.service