Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Overwrite all 1 minute cron jobs?

Discussion in 'General Discussion' started by tejli, May 24, 2019.

  1. tejli

    tejli Member

    Joined:
    Aug 8, 2016
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    vienna
    cPanel Access Level:
    Website Owner
    Hello cPanel Community.

    Is there a command that will overwrite all users 1 minute cron jobs to 5 minutes?
    There have been many questions on this in the past but no answer provided.

    I can see some providers already have removes the 1 minute from the drop list and some providers are overwriting automatically the crons from 1 min to 15.

    I hope good knowing man/woman will post a solution.

    Thank you!!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,478
    Likes Received:
    185
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    The problem you are going to run in to here is each category could and probably does use an asterisk. This SHOULD work, but I only did limited testing, so back up your files first.

    replace "* * * * *" "*/15 * * * *" -- /var/spool/cron/*

    Someone may have done something silly so you may also want to run

    replace "*/1 * * * *" "*/15 * * * *" -- /var/spool/cron/*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  4. tejli

    tejli Member

    Joined:
    Aug 8, 2016
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    vienna
    cPanel Access Level:
    Website Owner

    Thank you!!!

    As I know this one will replace even hourly or daily crons to 15 min right?
    replace "* * * * *" "*/15 * * * *" -- /var/spool/cron/*

    2:
    This one will replace cpanel users crons or servers crons only?
     
  5. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,478
    Likes Received:
    185
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    It will not change anything other than the minutely crons.

    It will change the user crons which includes the user root. But not the system crons in /etc/cron*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice