February 4th, 2008, 04:44 PM
How to restart cron daemon?
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...
February 4th, 2008, 05:12 PM
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...
February 4th, 2008, 05:13 PM
to see if CRON is running...from a bash prompt type:
to see the current user's crontab type:
February 4th, 2008, 05:22 PM
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...
February 4th, 2008, 05:24 PM
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
February 4th, 2008, 05:26 PM
do you have desktop access?
are you running KDE ? GNOME?
February 4th, 2008, 05:30 PM
nah running putty... as mentioned the only GUI I use is directadmin so to say...
February 4th, 2008, 05:38 PM
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?
February 4th, 2008, 05:52 PM
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...
February 4th, 2008, 05:58 PM
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?
February 4th, 2008, 06:07 PM
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...
February 7th, 2008, 09:49 AM
anyone an idea how to fix it?