Yum update running at 8 AM instead of 1 AM ?

UnknownFan

Registered
Jan 19, 2021
4
0
1
Brazil
cPanel Access Level
Root Administrator
Greetings forum,
I currently have cPanel and WHM in my VPS. I also have docker installed with my software.
I noticed that, everytime the command below is executed, docker daemon is restarted.

Cron <[email protected]> /usr/bin/yum -y -R 120 -d 0 -e 0 update

Ive set up docker to restart automatically. So its OK, except for the part that, this 'yum update' is running at 8:30 AM, when people are using the software and their emails etc.

Question:

How do I set up WHM/cPanel to run that yum update at 1 AM instead of 8:30 AM ?

-----
More information:

crontab -l
1 4 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
18 3 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
9 1 * * 0 (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron > /dev/null)
1 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
33 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
55 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
12 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
39 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
51 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
45 10 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
35,50,5,20 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
0 2 * * * /usr/local/cpanel/bin/backup
5,20,35,50 * * * * /usr/local/cpanel/scripts/eximstats_spam_check 2>&1
0 */2 * * * /usr/local/cpanel/scripts/shrink_modsec_ip_database -x 2>&1
@reboot /usr/local/cpanel/bin/onboot_handler
53 4 * * * /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1


WHM yum update.png
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,252
2,219
363
cPanel Access Level
Root Administrator
Hey there! That cron format doesn't look like something I'm familiar with, so it likely isn't added by cPanel. This specific command has been used to update CentOS systems for many years, but this doesn't show up in any of the cPanel systems /var/log/cron files that I checked.

It would seem that something else besides cPanel has added that cron to the machine. Your update settings look like they should run normally at 1AM, with backups at 2AM, server time.