diff --git a/etc/mesh_bot_reporting.timer b/etc/mesh_bot_reporting.timer new file mode 100644 index 0000000..96c35a8 --- /dev/null +++ b/etc/mesh_bot_reporting.timer @@ -0,0 +1,10 @@ +[Unit] +Description=MeshingAround-ReportingTask + +[Timer] +OnUnitActiveSec=1h +OnbootSec=5min +Unit=mesh_bot_reporting.service + +[Install] +WantedBy=timers.target \ No newline at end of file diff --git a/etc/bot_reporting.tmp b/etc/mesh_bot_reporting.tmp similarity index 76% rename from etc/bot_reporting.tmp rename to etc/mesh_bot_reporting.tmp index 1e01f2f..1a26dc6 100644 --- a/etc/bot_reporting.tmp +++ b/etc/mesh_bot_reporting.tmp @@ -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