change mrtg from daemon to crontab
by calgeorge from LinuxQuestions.org on (#4X5SS)
I installed mrtg some time ago. I don't remember exactly how it starts. It starts and runs as a daemon, but I don't know how to restart it except to reboot the server (too disruptive).
I am not a complete linux noob because I have been fiddling with the os for years. It has never been my primary os. (In a few days I will be dumping win10 and be a complete linux bigot.)
However, right now, I need to understand how mrtg is being started so I can make that stop. The configuration file tells it to run as daemon, I can fix that. I think I can figure out how to use crontab to start mrtg every 5 or 6 minutes. But, it won't start if it is already a resident task.
I know it is a perl script with command line parms to point to the configuration and log files (and possibly other switches). But I can't seem to find where that command is issued.


I am not a complete linux noob because I have been fiddling with the os for years. It has never been my primary os. (In a few days I will be dumping win10 and be a complete linux bigot.)
However, right now, I need to understand how mrtg is being started so I can make that stop. The configuration file tells it to run as daemon, I can fix that. I think I can figure out how to use crontab to start mrtg every 5 or 6 minutes. But, it won't start if it is already a resident task.
I know it is a perl script with command line parms to point to the configuration and log files (and possibly other switches). But I can't seem to find where that command is issued.