diff --git a/check_and_reboot_state.json b/check_and_reboot_state.json index 79e011e..3d2cdaa 100644 --- a/check_and_reboot_state.json +++ b/check_and_reboot_state.json @@ -1 +1 @@ -{"last_reboot_datetime":"2026-03-20T08:56:37.673","consecutive_fails":0} \ No newline at end of file +{"last_reboot_datetime":"2026-01-31T12:56:40.834","consecutive_fails":0} \ No newline at end of file diff --git a/check_router_reboot.jl b/check_router_reboot.jl index c277af5..166a835 100644 --- a/check_router_reboot.jl +++ b/check_router_reboot.jl @@ -8,7 +8,7 @@ # add the following to root's crontab (sudo crontab -e) # # ------------------------------------------------------------------------------------------------ # # *** juliar is root's julia (sudo crontab -e) but I symlinked to juliar because I want to seperate it from user's julia -# @reboot /usr/local/bin/juliar /home/ton/docker-programs/check_and_reboot/check_router_reboot.jl >> /var/log/check_reboot.log 2>&1 +# @reboot sleep 30 && /usr/local/bin/juliar /home/ton/docker-programs/check_and_reboot/check_router_reboot.jl >> /var/log/check_reboot.log 2>&1 # @reboot sleep 30 && /root/.juliaup/bin/julia /root/docker-apps/check_and_reboot/check_router_reboot.jl >> /var/log/check_reboot.log 2>&1 using Dates, Printf, JSON