PDA

View Full Version : crontab versus deamon



interfasys
12-21-2003, 11:47 PM
I can't make up my mind about whether I should run MRTG as a deamon or with the help of a cron job.

I guess there are other applications that can also be run both ways.

So which is better for 5 minutes interval readings? Does it make a difference?

DirectAdmin Support
12-21-2003, 11:51 PM
In *my* opinion, I would run it as a cron job. That way, you don't have to worry if its running at all. I was faced with the same problem when designing the task queue, and the cron job won out, as the crond is rock solid, and is nice enough to email you when anything is outputted. Also, since mrtg will be completely idle for 5 minutes at a time, it doesn't make much sense to have it sitting in memory, just twiddling it's fingers ;) ... Just my 2 cents, I'm sure there are other opinions out there.

John

The Prohacker
12-22-2003, 01:54 AM
It depends on usage.. If your only polling a few sources.. Then cron it.. Its much easier..

Now if your polling a few hundred ports via SNMP it can be useful to run it as a daemon to save resources...