Added systemd service

This commit is contained in:
dbroqua 2021-01-22 18:31:41 +01:00
parent 0b4305e6de
commit bb01064ae9

16
raspicar.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=RaspiCar Service
After=
[Service]
Type=simple
User=pi
Group=pi
UMask=007
WorkingDirectory=/home/pi/raspicar/
ExecStart=python3 /home/pi/raspicar/raspicar.py
Restart=on-failure
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target