[Nut-upsuser] Re: Shutdown problem with Geek Squad GS1285U
Eric Ashley
eashleyfl at yahoo.com
Tue Feb 6 23:03:33 CET 2007
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.
More information about the Nut-upsuser
mailing list