geraldoramos / pigeon

Pigeon is a simple 3D printed cloud home surveillance camera project that uses the new Raspberry Pi Zero W
https://www.instructables.com/id/Pigeon-a-3D-Printed-Cloud-Home-Surveillance-Camera/
GNU General Public License v3.0
296 stars 22 forks source link

Use systemd instead of rc.local for autostarting on boot #27

Closed thibmaek closed 4 years ago

thibmaek commented 6 years ago

systemd is the advised way to run background/startup services since Debian Jessie. Just started setting up this project, made it through the README, but a systemd unit for this project should be as simple as:

[Unit]
Description=Pigeon
After=network.target

[Service]
ExecStart=motion -c /home/pi/pigeon/pigeon.conf
Restart=on-abort

[Install]
WantedBy=multi-user.target