Article 4X5SS change mrtg from daemon to crontab

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.latest?d=yIl2AUoC8zA latest?i=Iz7AZAAaUNA:PrghoeEKaTc:F7zBnMy latest?i=Iz7AZAAaUNA:PrghoeEKaTc:V_sGLiP latest?d=qj6IDK7rITs latest?i=Iz7AZAAaUNA:PrghoeEKaTc:gIN9vFwIz7AZAAaUNA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments