From fd1cd2a44c497f5547db9ff1745a9fcfd35e73c4 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 25 Oct 2025 17:28:16 -0700 Subject: [PATCH] patch --- etc/mesh_bot_reporting.timer | 9 ++------- etc/mesh_bot_reporting.tmp | 2 +- install.sh | 6 +++--- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/etc/mesh_bot_reporting.timer b/etc/mesh_bot_reporting.timer index 542096e..79ce89d 100644 --- a/etc/mesh_bot_reporting.timer +++ b/etc/mesh_bot_reporting.timer @@ -4,14 +4,9 @@ Description=MeshingAround-ReportingTask [Timer] OnCalendar=*-*-* 04:20:00 Persistent=true -#Unit=mesh_bot_reporting.service +Unit=mesh_bot_reporting.service #OnUnitActiveSec=1h #OnbootSec=5min [Install] -WantedBy=timers.target - -[Service] -Type=oneshot -ExecStart=/usr/bin/python3 /opt/meshing-around/etc/report_generator5.py -ExecStartPost=/usr/bin/python3 /opt/meshing-around/etc/report_generator.py \ No newline at end of file +WantedBy=timers.target \ No newline at end of file diff --git a/etc/mesh_bot_reporting.tmp b/etc/mesh_bot_reporting.tmp index 515e630..bd1b4f5 100644 --- a/etc/mesh_bot_reporting.tmp +++ b/etc/mesh_bot_reporting.tmp @@ -26,4 +26,4 @@ Restart=on-failure Type=notify #try simple if any problems [Install] -WantedBy=default.target \ No newline at end of file +WantedBy=timers.target \ No newline at end of file diff --git a/install.sh b/install.sh index c48a3d6..97f5324 100755 --- a/install.sh +++ b/install.sh @@ -398,9 +398,9 @@ if [[ $(echo "${embedded}" | grep -i "^n") ]]; then printf "sudo systemctl stop %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl disable %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl disable %s.service\n" "$service" >> install_notes.txt - printf "Add this to your crontab to run the report generator hourly:" >> install_notes.txt + printf "\n older chron statment to run the report generator hourly:\n" >> install_notes.txt printf "0 * * * * /usr/bin/python3 $program_path/etc/report_generator5.py" >> install_notes.txt - printf " to edit crontab run 'crontab -e'" >> install_notes.txt + printf " to edit crontab run 'crontab -e'\n" >> install_notes.txt printf "\nmesh_bot_reporting.timer installed to run daily at 4:20 am\n" >> install_notes.txt printf "Check timer status: systemctl status mesh_bot_reporting.timer\n" >> install_notes.txt printf "List all timers: systemctl list-timers\n" >> install_notes.txt @@ -454,7 +454,7 @@ else printf "sudo journalctl -u %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl stop %s.service\n" "$service" >> install_notes.txt printf "sudo systemctl disable %s.service\n" "$service" >> install_notes.txt - printf "Add this to your crontab to run the report generator hourly:" >> install_notes.txt + printf "older crontab to run the report generator hourly:" >> install_notes.txt printf "0 * * * * /usr/bin/python3 $program_path/etc/report_generator5.py" >> install_notes.txt printf " to edit crontab run 'crontab -e'" >> install_notes.txt printf "\nmesh_bot_reporting.timer installed to run daily at 4:20 am\n" >> install_notes.txt