Tidsplaner
Source: Download script
Last Updated: 11. September 2025 by Agnete Moos (agms@sonderborg.dk)
Click to see the source code
#!/usr/bin/env bash
set -x
printf "Check crontab for root\n"
crontab -l
printf "\nCheck crontab for user\n"
crontab -u user -l
printf "\nCheck the contents of /etc/os2borgerpc/plan.json\n"
cat "/etc/os2borgerpc/plan.json"
printf "\n\nCheck the contents of the schedule service file\n"
cat "/etc/systemd/system/os2borgerpc-set_on-off_schedule.service"
printf "\nCheck the contents of /usr/local/lib/os2borgerpc/set_on-off_schedule.py\n"
cat "/usr/local/lib/os2borgerpc/set_on-off_schedule.py"
printf "\nCheck the contents of /usr/local/lib/os2borgerpc/scheduled_off.sh\n"
cat "/usr/local/lib/os2borgerpc/scheduled_off.sh"
printf "\nCheck the status of the schedule service\n"
systemctl status os2borgerpc-set_on-off_schedule | cat
printf "\nCheck next planned wakeup\n"
rtcwake -m show
printf "\nCheck that rtcwake is in the expected location\n"
which rtcwake
Beskrivelse
Dette script bruges til at fejlfinde problemer ift. tidsplaner, såsom at skrive til jobloggen hvilken tidsplan maskinen har liggende, og om de relevante services kører.