Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Nov 2001 17:43:42 +0800
From:      Kelvin Ng Chee Hoong <nchee_hoong@pacific.net.sg>
To:        freebsd-questions@FreeBSD.ORG
Subject:   rc.shutdown
Message-ID:  <5.1.0.14.0.20011108173601.00a49bc0@po.pacific.net.sg>

next in thread | raw e-mail | index | archive | help
Hi ;
    I have created rc.shutdown directory in /usr/local/etc , and put a 
sample script under rc.shutdown directory in order to command the system 
execute the script first before it is going to reboot . But somehow , it 
doesn't work .
     What happened ?

My sample script is as follow ...
LOCALETC=/usr/local/etc
messages='The system has been rebooted, so the MRTG program is rerunning'

if [ -f $LOCALETC/mrtg/cisco7000.pid ]; then
rm -f $LOCALETC/mrtg/cisco7000.pid
echo $messages | mail -s "Restart MRTG daemon" abc@defasddd.com
fi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011108173601.00a49bc0>