danf

Active Member
Apr 10, 2006
26
0
151
I noticed recently that my /etc/crontab is being ignored. This is my /etc/crontab:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly


But this is my /var/spool/cron/root:
35 5 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
15 4 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

So, obviously cPanel is taking over my crontab. What is the proper way to use my own crontab without disturbing cPanel? I don't want my changes to get overwritten by cPanel.

Thanks.
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
User specific crontabs are saved in /var/spool/cron directory.

Regards,
 

danf

Active Member
Apr 10, 2006
26
0
151
It's working now

I'm not sure why, but it's working fine now. I didn't change anything, other than adding a test under /etc/cron.daily. It didn't work the first couple of days, but it has been ever since. Strange.