You are here
bhruska - Fri, 2018/09/21 - 16:21
I want to reboot my Wordpress server once per day, automatically through a CRON job. I've tried multiple ways to get this done, based on various google searches and suggestions. But, it never seems to work.
Can you suggest an easy solution for this?
I tried creating:
/etc/cron.daily/zz-reboot
AS:
#!/bin/sh
shutdown -r now
Setting it executable:
chmod a+x /etc/cron.daily/zz-reboot
The "zz" prefix is supposed force it to run last out of all the other scripts in that directory. But it doesn't execute.
I tried creating a new CRON job in WebMin that does nothing but
reboot
As suggested elsewhere, but it doesn't do anything.
Forum:
Tags:
There is a wiki page on github on testing cron jobs
I suggest that you have a look at the "How to test a cron job" page on the TurnKey GitHub wiki. Hopefully that might assist you to work out what is going wrong.
Good luck and please post back on what you discover and/or if you need further help.
Add new comment