Added systemd service
This commit is contained in:
parent
0b4305e6de
commit
bb01064ae9
1 changed files with 16 additions and 0 deletions
16
raspicar.service
Normal file
16
raspicar.service
Normal 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
|
Loading…
Reference in a new issue