#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10

    How to restart cron daemon?


    Hello,

    does anyone know how to restart the cron daemon in debian? Background story is, that I tried to edit crontab by crontab -e and loaded an external file for crons within crontab. That loaded fine but when I have a look at the crons in my control panel those I added still donīt show up, so I guess I would probably need to restart the cron daemon in order to have the changes take place...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2004
    Posts
    2,102
    Rep Power
    1767
    try

    /etc/init.d/cron restart


    if you are using a desktop GUI consider installing SYSV it is an init.d interface that makes it simple to start/stop/restart any running services...it also makes it easy to drag-drop services to any run level...it is very handy if you use the box as a dev. server...
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2004
    Posts
    2,102
    Rep Power
    1767
    to see if CRON is running...from a bash prompt type:

    crontab


    to see the current user's crontab type:

    crontab -l
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    well the thing is when I view the list via crontab -l it shows the crontabs I added, but when I show the cronjobs in directadmin (my control panel) they wouldnīt show...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    cron -restart gave me that result:
    admin@zu:~$ /etc/init.d/cron restart
    Restarting periodic command scheduler: crond/etc/init.d/cron: line 34: start-stop-daemon: command not found
    /etc/init.d/cron: line 35: start-stop-daemon: command not found
    failed!
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2004
    Posts
    2,102
    Rep Power
    1767
    do you have desktop access?

    are you running KDE ? GNOME?
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    nah running putty... as mentioned the only GUI I use is directadmin so to say...
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2004
    Posts
    2,102
    Rep Power
    1767
    OK SysV is out then <too bad>

    At any rate the daemon should execute the crontabs that are listed when you run -l

    is this a server you're the admin of?
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    yes I got root access... what confuses me in fact is that when doing crontab -l the cronjobs I addes by file are shown, but when I login to directadmin and have a look at the cronjobs only those preexisting are shown but not the ones I added by file...
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2004
    Posts
    2,102
    Rep Power
    1767
    are you supposed to be seeing all the crontabs for all the users from the CP?

    when you access the CP are you doing so as root?
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    now I access as "admin" which is not the same as linux-root.... but I added the cronjobs by crontab as well as admin and it showed my adminīs cronjobs list as well when I edited by crontab -e...
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    155
    Rep Power
    10
    anyone an idea how to fix it?

IMN logo majestic logo threadwatch logo seochat tools logo