Answer the question
In order to leave comments, you need to log in
How can I organize a reboot of a linux system (debian in particular) by uptime?
Tell me how to correctly implement a system reboot by uptime? Those. so that the system reboots, say, every week after launch.
My idea is to write a bash script that will run by cron at a certain time every day, check if the week has passed through uptime and, if the condition is met, reboot the system.
Maybe someone knows a simpler solution?
Answer the question
In order to leave comments, you need to log in
Why fence a garden? Do a cron reboot every seventh or fourteenth day at 2:00. Why do you need uptime? Or do you think that in two weeks it may be different?
By the way, such a question, why did such a need arise: to restart the computer by uptime? Maybe in your case you can do without a reboot?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question