Hi Gary, You're probably looking for /etc/init.d/halt. You'd want to call 'upsdrvctl shutdown' just before the final halt but after any mounted filesystems have been remounted read-only. My Fedora Core 3 system has the following nut shutdown code after the remount and display of reboot/halt/fsck forced message but before /sbin/halt.local gets called:
------ sample /etc/init.d/halt NUT shutdown code ----- if [ "$command" = /sbin/halt -a -r /etc/ups/upsmon.conf -a \ -f /etc/killpower -a -f /etc/sysconfig/ups ] ; then . /etc/sysconfig/ups if [ "$SERVER" = "yes" -a "$MODEL" = "upsdrvctl" ] ; then /sbin/upsdrvctl shutdown elif [ "$SERVER" = "yes" -a "$MODEL" != "NONE" -a \ -n "$MODEL" -a -n "$DEVICE" ] ; then $MODEL $OPTIONS_HALT -k $DEVICE fi fi ----- end sample ----- Either ensure that there are no spaces after the \ characters at the end of the 2 lines above or remove them and join the lines their on with the line immediately following. Hope this helps. Best regards, Eric ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser