New version, completely

This commit is contained in:
2019-08-22 16:12:05 +02:00
parent 9840a2f278
commit 8689dd8c63
221 changed files with 72660 additions and 0 deletions

22
systemd/freedavis.service Normal file
View File

@@ -0,0 +1,22 @@
[Unit]
Description=Davis ETL, feeding influxdb
After=network-online.target
Before=multi-user.target
Requires=influxdb.service
After=influxdb.service
[Service]
User=pi
# Gathers system statistics via python script
ExecStart=/usr/bin/python3 /home/pi/www/plutonium/python/davis_etl.py
# wait 60 seconds before trying to restart the connection
# if it disconnects
RestartSec=5
# keep retrying no matter what
Restart=always
[Install]
WantedBy=multi-user.target

22
systemd/sysstat.service Normal file
View File

@@ -0,0 +1,22 @@
[Unit]
Description=System monitoring, feeding influxdb
After=network-online.target
Before=multi-user.target
Requires=influxdb.service
After=influxdb.service
[Service]
User=pi
# Gathers system statistics via python script
ExecStart=/usr/bin/python3 /home/pi/www/plutonium/python/sysstats.py
# wait 60 seconds before trying to restart the connection
# if it disconnects
RestartSec=5
# keep retrying no matter what
Restart=always
[Install]
WantedBy=multi-user.target