Skip to main content

Questions about a specific cron job

Comments

3 comments

  • cPanelMichael
    Hello @RetiredAF,
    /usr/bin/yum -y -R 120 -d 0 -e 0 update

    This is not a cron job that's added by default with cPanel & WHM. I recommend removing this cron job and browsing to WHM >> Update Preferences to enable automatic system package updates as part of the nightly cPanel update. Or, contact your system administrator or provider to see if that specific cron job was added for a particular reason. Thank you.
    0
  • RetiredAF
    Thanks for the information. The cron job was there when we procured the KVM VPS server. Unfortunately the person who sold us the server is an idiot so it is not likely we will find out from him why it is there. I guess we'll remove it.
    0
  • cPanelMichael
    Hello @RetiredAF, I should point out the command you referenced simply runs "yum update" after waiting for two hours and then outputs only the critical errors. However, the command does update the kernel, which doesn't happen by default when cPanel & WHM initiates the update. You can enable the following option in WHM >> Tweak Settings if that's something you want to happen: Enable Linux kernel update during nightly maintenance. Per it's description: Each night, WHM updates your system software but does not update the kernel. If you select On, WHM will update the kernel. When you log in, WHM will notify you that your system requires a reboot. Thank you.
    0

Please sign in to leave a comment.