Ash McK Aug 20 4:53AM 2018
Hello,
So I've noticed an issue. When our server is rebooted the cron file is changing back to some weird default. We seem to end up with 1 line instead of the 4 normally have.
Is this an issue with vertical or is this Linux being weird & wonderful?
Any ideas to stop this happening?
gchen Aug 21 7:51PM 2018
The cron file /var/spool/cron/crontabs/root
will be reset after a reboot, so to make a cron change permanent you'll need to modify /etc/rc.local.d/local.sh
to recreate the cron lines that you want to add.
The vertical cron
command will modify both files for you, but if you add a cron job by modifying the cron file /var/spool/cron/crontabs/root
only then you'll need to modify /etc/rc.local.d/local.sh
` accordingly.