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.

man ln

basically ln -s old new

> 
> 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.

in your case
ln -s /etc/init.d/mrtgd /etc/rc.d/rc2.d/S65mrtg

florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011019/37d980a6/attachment.pgp