On Tue, Oct 16, 2001 at 08:25:26AM -0500, Raymond Norton wrote:
> 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.
> 
> 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 /etc/init.d or /etc/rc.d/init.d where you put scripts which starts the process you want to run when the system boots. Further you must create a symbolic link in /etc/rc3.d or /etc/rc.d/rc?.d called S65mrtg (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.
> 
> A minimal script to put into init.d might look like this:
> 
>  #! /bin/sh
>  cd /usr/local/mrtg-2.9.17/bin && ./mrtg --user=mrtg-user \
>        /home/httpd/mrtg/mrtg.cfg  --logging /var/log/mrtg.log
> Note that this will only work with RunAsDaemon: Yes in your mrtg.cfg file.

ln -s /etc/init.d/script /etc/rc3.d/S65mrtg ?

-- 
  Thomas Eibner <http://thomas.eibner.dk/> DnsZone <http://dnszone.org/>
  mod_pointer <http://stderr.net/mod_pointer>