serviceFiles

This commit is contained in:
SpudGunMan
2024-10-04 17:05:15 -07:00
parent 6af486d772
commit 182b725f43
2 changed files with 14 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=MeshingAround-ReportingTask
[Timer]
OnUnitActiveSec=1h
OnbootSec=5min
Unit=mesh_bot_reporting.service
[Install]
WantedBy=timers.target
@@ -3,16 +3,16 @@
# sudo systemctl start mesh_bot.service
[Unit]
Description=MESH-BOT-Reporting
Description=MeshingAround-Reporting
After=network.target
[Service]
Type=simple
Type=oneshot
User=pi
Group=pi
WorkingDirectory=/dir/
ExecStart=python3 logs/mesh_network_analyzer.py
ExecStop=pkill -f mesh_network_analyzer.py
ExecStart=python3 etc/report_generator5.py
ExecStop=pkill -f report_generator5.py
# Disable Python's buffering of STDOUT and STDERR, so that output from the
# service shows up immediately in systemd's logs