added freedavis.service for systemd
This commit is contained in:
12
systemd/freedavis.service
Normal file
12
systemd/freedavis.service
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Gather data from serial port and write them to InfluxDB
|
||||||
|
After=multiuser.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
ExecStart=/usr/bin/python3 /root/freedavis/python/davis_etl.py
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=60
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user