This commit is contained in:
SpudGunMan
2025-10-25 17:28:16 -07:00
parent 2c3c3fed10
commit fd1cd2a44c
3 changed files with 6 additions and 11 deletions
+2 -7
View File
@@ -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
WantedBy=timers.target
+1 -1
View File
@@ -26,4 +26,4 @@ Restart=on-failure
Type=notify #try simple if any problems
[Install]
WantedBy=default.target
WantedBy=timers.target
+3 -3
View File
@@ -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