Answer the question
In order to leave comments, you need to log in
Why is the server not rebooting via cron?
Faced a problem, the server does not restart through the task created in cron
Looks like this
SHELL=/bin/bash
00 17 * * * shutdown -r 0
Answer the question
In order to leave comments, you need to log in
Start by writing full paths in crontabs:
00 17 * * * /sbin/shutdown -r 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question