The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron job issue

Discussion in 'General Discussion' started by teleute, Jul 18, 2007.

  1. teleute

    teleute Member

    Joined:
    Apr 18, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I swear I've read something in the past, but I can't find it now - does it mess up cPanel's handling of cron jobs if you manually edit the crontab? I have crons working on all my sites except one - when I add the commands in cpanel, they just get wiped out. I'm starting to suspect that someone before me may have edited the crontab. Any other possibilities? And if that is the case, how do I fix it? Thanks!
     
  2. Amms

    Amms Registered

    Joined:
    May 8, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I think manual edits are OK; but you'd have to restart cron after the edit so it noticed the change.

    Are you doing the changes with the crontab(1) command?

    ("OK" above does not mean recommended! I'd use crontab -l and crontab in a loop instead for global edits!)
     
  4. teleute

    teleute Member

    Joined:
    Apr 18, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1

    The crons are working on like 20 other accounts - it's only this one that's being problematic. I'd be hesitant to mess with file permissions when so many of them are working. Is there something specific to each account I can do this to?
     
  5. teleute

    teleute Member

    Joined:
    Apr 18, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I just want to do the edits in cPanel and have them work. I'm not interested in manually editing - I just think maybe it was done in the past and that's what's causing the issue, but perhaps that's not the case. All I know is, cron works on all accounts but one, and when I try to add jobs in cpanel for the one, they just disappear/don't work.
     
  6. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    The "crontab" is specifically for the Server, not any User accounts and should only be editted using:
    crontab -e


    As to the one account having cron problems, run this command: cat /etc/cron.deny
    If you see the Username of the problem account then that's the problem. Simply edit the file and remove the Username. No restart of cron required.
     
  7. teleute

    teleute Member

    Joined:
    Apr 18, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Thanks...I looked in cron.deny and there's only "nobody". Any other reasons one user only might be having issues?
     
Loading...

Share This Page