APC UPS control system Power Supply User Manual


 
# If this is changed, mountall, umountall and rcS should also change.
/sbin/umountall
/sbin/umount /var/adm >/dev/null 2>\&1
/sbin/umount /var >/dev/null 2>\&1
/sbin/umount /usr >/dev/null 2>\&1
echo ’The system is down.’
We need to insert the following lines just before the last ’echo’:
#see if this is a powerfail situation
if [ -f /etc/apcupsd/powerfail ]; then
echo
echo "APCUPSD will power off the UPS"
echo
/etc/apcupsd/apccontrol killpower
echo
echo "Please ensure that the UPS has powered off before rebooting"
echo "Otherwise, the UPS may cut the power during the reboot!!!"
echo
fi
We have included these lines in a file called rc0.solaris in the distribu-
tions/sun subdirectory of the source tree. You can cut and paste them
into the /sbin/rc0 file at the correct place, or yank and put them using vi
or any other editor. Note that you must be root to edit this file.
You must be absolutely sure you have them in the right place. If your
/sbin/rc0 file does not look like the lines shown above, do not modify the
file. Instead, email a copy of the file to the maintainers, and we will attempt
to figure out what you should do. If you mess up this file, the system will
not shut down cleanly, and you could lose data. Don’t take the chance.
This feature has only been tested with APC SmartUPS models. If you do
not have a SmartUPS, you will be one of the first testers to try this feature.
Please send email to let us know if it works with your UPS model, what
model you have, and if possible, the event logs located in /etc/apcupsd.
We’d be very interested in your results, and would be glad to work with you
to get this feature working correctly with all the APC models. A detailed
description of the screen output during the shutdown would be very helpful
if you see problems.
You will then need to make the normal changes to the
/etc/apcupsd/apcupsd.conf file. This file contains the configuration
settings for the package. It is important that you set the values to match
46