Results 1 to 2 of 2

Thread: Does cron need to be restarted if a new user creates a crontab?

  1. #1
    Join Date
    Aug 2007
    Location
    Atlanta, GA
    Beans
    179
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Does cron need to be restarted if a new user creates a crontab?

    On a box, that I don't have root access to, I added a job to my crontab to run every hour. So far it doesn't appear to be running (if it is then I'm not getting an email and I don't have root access to the logs) but the databases that my script is supposed to update has not been updated. I don't know for sure if it's due to an error or if it's just because the cron job's not running.

    My user hasn't used crontab previously and I just did today:
    Code:
    crontab -e
    and added my job (and a MAILTO variable).

    If I do ps aux | grep crond then I see:
    Code:
    root      3282  0.0  0.1 57216 1072 ?        Ss   Jul07   0:00 crond
    htiadmin 20886  0.0  0.0 51092  672 pts/1    R+   15:08   0:00 grep crond
    Can somebody tell me if I need to do something to get my own cron job running? Does the entire cron service need to be restared, or is there something I can do with my own user?

  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Beans
    1,731
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Does cron need to be restarted if a new user creates a crontab?

    No, if you created it with the crontab command then you don't need to restart it. If you directly added a crontab file (believe /var/spool/crontabs - or is that solaris.. mmm), then you need to restart crontab.

    Maybe something wrong with your script/crontab entry. Care to share?
    Upgrade Ubuntu | Upgrade unsupported Ubuntu versions | Always backup | Howto upgrade flash
    Minimal CD install | Remove old kernels | My blog | Linux user #462801 | Conscience doth make cowards of us all. -- Shakespeare

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •