update
This commit is contained in:
@@ -7,9 +7,15 @@
|
|||||||
# ------------------------------------------------------------------------------------------------ #
|
# ------------------------------------------------------------------------------------------------ #
|
||||||
# add the following to root's crontab (sudo crontab -e) #
|
# add the following to root's crontab (sudo crontab -e) #
|
||||||
# ------------------------------------------------------------------------------------------------ #
|
# ------------------------------------------------------------------------------------------------ #
|
||||||
|
|
||||||
|
# ------------------------------- For PC with multiple user account ------------------------------ #
|
||||||
|
# @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
|
||||||
# *** juliar is root's julia (sudo crontab -e) but I symlinked to juliar because I want to seperate it from user's julia
|
# *** juliar is root's julia (sudo crontab -e) but I symlinked to juliar because I want to seperate it from user's julia
|
||||||
# for non-root user: @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
|
|
||||||
# for root user: @reboot sleep 30 && /root/.juliaup/bin/julia /root/docker-apps/check_and_reboot/check_router_reboot.jl >> /var/log/check_reboot.log 2>&1
|
# ---------------------- For PC with only root user account such as Proxmox ---------------------- #
|
||||||
|
# @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
|
using Dates, Printf, JSON
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user