Koozali.org: home of the SME Server

Cron Jobs not working on SME 5.5

Paul van Dun

Cron Jobs not working on SME 5.5
« on: December 25, 2002, 05:17:44 PM »
Hello Everyone,

First of all merry X-mas to all of you,

After installing serverSTAT 1.5 on my testserver which runs 5.12 Update2 and adding two cronjobs to run every 5 and 10 minutes I've decided to put it on my live server because everything worked just fine.
My live server is SME 5.5 Update2, the cronjobs I added in the follwing way (the same way as on the testserver):

Added two jobs:

touch /etc/e-smith/templates/etc/cron.d/servcron

and

touch /etc/e-smith/templates/etc/cron.d/servcron

I've editted those files and they look like this:

servcron (must run every 10 minutes)

*/10 * * * * root /usr/bin/lynx -dump http://localhost/ServerStats/scripts/serv_cron.php > /dev/null

statcron (must run every 5 minutes)

*/5 * * * * root /usr/bin/lynx -dump http://localhost/ServerStats/scripts/statcron_cron.php > /dev/null

After this I''ve expanded the templates like this

/sbin/e-smith/expand-template /etc/crond/statcron

and

/sbin/e-smith/expand-template /etc/cron.d/servcron

After this:

service crond restart

When I look in my log files from cron on the testserver I see that the files are executed every 5 and 10 minutes, and when I check it on my live server they are not, I've checked and double checked the file- and directory permissions but they are also the same as on my testserver.
The script I try to run is found on this page: http://www.clook.net/freescripts/

Looking forward to your replies,

Best regards.

Paul van Dun

Paul van Dun

Re: Cron Jobs not working on SME 5.5
« Reply #1 on: December 26, 2002, 12:16:35 AM »
Hello everyone,

I fixed the problem on SME 5.5 by editting the template

/etc/templates/crontab/10runparts

I've added the desired lines and then did the expand-template thing, and now it's working like it should, the script checks if your port 80 25 etc are up and running and it gives a bargraph of your serverload per day.
You can check it at http://www.verkenners.net/ServerStats/index.php if you like of course.

Regards,

Paul van Dun