Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: srose on October 15, 2004, 03:41:50 AM

Title: crontab help please
Post by: srose on October 15, 2004, 03:41:50 AM
I am hoping someone can help me with this,

In /etc/crontab

I have a command

*/5 * * * * root /usr/bin/php /opt/administration/cacti/cmd.php > /dev/null 2>&1

which i update to

*/5 * * * * root /usr/bin/php /opt/administration/cacti/poller.php > /dev/null 2>&1

I save and exit and it runs fine but every couple of days at 1am in the moving it stops running and if i look back in the crontab the old conf ig is there.

Does e-smith copy a crontab from somewhere and over right the one in /etc

??
Title: crontab help please
Post by: funkusmunkus on October 15, 2004, 04:37:45 AM
Hi srose,

Yes SME does reset changes made, if you want the change to stick you have to make a custome template

have a look here
http://no.longer.valid/phpwiki/index.php/Architecture%20overview

it gives you a little insite on the architecture.

so make a template in /etc/e-smith/templates-custom/ and if you want the template to be in etc your make it as /etc/e-smith/templates-custom/etc/(template)

that's one of the strengs of SME.

hope that helps
cheers
Title: crontab help please
Post by: RavenIV on October 15, 2004, 07:03:01 AM
there is a contrib for the crontab.
if you look into the "General discussion" of that forum you will find it.

BTW: never do changes directly in config-files. always use the template system.

cheers.