Ok, I’ve found all the cron jobs that run yesterday in /var/log/cron and have added all of my own cron jobs back in.
I’ve also added this one:
/etc/webmin/status/monitor.pl
But am unsure of these entries:
Feb 27 00:01:01 rock CROND[3042]: (root) CMD (run-parts /etc/cron.hourly)
Feb 27 03:25:01 rock run-parts(/etc/cron.daily)[25731]: starting logrotate
Feb 27 03:25:04 rock run-parts(/etc/cron.daily)[27038]: finished man-db.cron
Feb 27 03:25:04 rock run-parts(/etc/cron.daily)[25731]: starting locate
Hmm, did it just remove the cron jobs in root’s crontab, which can be seen by running “crontab -l”? Or did it also remove everything in “/etc/cron.hourly”, “/etc/cron.daily”, “/etc/cron.weekly”, and “/etc/cron.monthly”?
I think you got the main Virtualmin cron jobs, but my concern is that other system tasks may have been removed.
total 36
drwxr-xr-x. 2 root root 4096 Feb 26 01:57 ./
drwxr-xr-x. 104 root root 12288 Feb 29 22:34 …/
-rwxr-xr-x 1 root root 211 Jan 4 2013 00webalizer*
-rwxr-xr-x 1 root root 332 Dec 3 15:33 0yum-daily.cron*
-rwx------ 1 root root 180 Jul 31 2013 logrotate*
-rwxr-xr-x. 1 root root 618 Mar 17 2014 man-db.cron*
-rwxr-x— 1 root root 192 Jan 26 2014 mlocate*
cd /etc/cron.weekly
ll
total 16
drwxr-xr-x. 2 root root 4096 Jun 9 2014 ./
drwxr-xr-x. 104 root root 12288 Feb 29 22:34 …/
cd /etc/cron.monthly
ll
total 16
drwxr-xr-x. 2 root root 4096 Jun 9 2014 ./
drwxr-xr-x. 104 root root 12288 Feb 29 22:34 …/
Does that all look ok?
Also, I don’t use awstats or webalizer, neither are ‘on’ in Webmin > cron jobs, but do I need to remove them from the daily and hourly directories too?
Edit: looking at it now looks like I need to add the following as daily crons?
logrotate*
man-db.cron*
mlocate*
I know that logrotate is needed, but not sure about man-db and mlocate?