[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice UPS and Shutdown



BNM>> in the document it is written that i need to add to the shutdown script
BNM>> the following lines:
BNM>> 
BNM>> if (test -f /etc/powerdown)
BNM>> then
BNM>>   echo "Killing the power, bye!"
BNM>>   /usr/local/ups/bin/apcsmart -k /dev/ttyS0
BNM>> fi
BNM>> 
BNM>> What file should i update under RH6.1 ? inittab ?

No. /etc/rc.d/rc6.d/S00reboot or /etc/rc.d/init.d/halt (it should be the
same).

-- 
frodo@sharat.co.il	\/  There shall be counsels taken
Stanislav Malyshev	/\  Stronger than Morgul-spells
phone +972-3-9316425	/\  		JRRT LotR.
http://sharat.co.il/frodo/	whois:!SM8333



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il