<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have done this once before, but cannot seem to
find the info to create a sybolic link as per the instructions below. I have
succesfully created the script in init.d. Any help would be
appreciated.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
<P>to your mrtg configuration file and then creating a startup script in your
system startup sequence. Unfortunately, adding startup scripts differs widely
amongst different unix systems. The modern ones normally have a directory called
<EM>/etc/init.d</EM> or <EM>/etc/rc.d/init.d</EM> where you put scripts which
starts the process you want to run when the system boots. Further you must
create a symbolic link in <EM>/etc/rc3.d</EM> or <EM>/etc/rc.d/rc?.d</EM> called
<EM>S65mrtg</EM> (this is just a sample name ... it is just important that it
starts with S followed by a two digit number). If you are not sure about this,
make sure you consult the documentation of your system to make sure you get this
right.</P>
<P>A <STRONG>minimal</STRONG> script to put into <EM>init.d</EM> might look like
this:</P><PRE> #! /bin/sh
cd /usr/local/mrtg-2.9.17/bin && ./mrtg --user=mrtg-user \
/home/httpd/mrtg/mrtg.cfg --logging /var/log/mrtg.log</PRE>
<P>Note that this will only work with <STRONG>RunAsDaemon: Yes</STRONG> in your
mrtg.cfg file.</P>
<P> </P>
<P>Raymond Norton</P></FONT></DIV></BODY></HTML>