> >     I'm going by :
> > 
> >     /usr/local/share/doc/nut/shutdown.txt
> > 
> >     Subsection "How you set it up", item #2 :
> > 
> > 2. Edit your shutdown scripts to check for the POWERDOWNFLAG so they
> > know
> >    when to power off the UPS.  You must check for this file, as you
> > don't
> >    want this to happen during normal shutdowns!
> > 
> >    You can use upsdrvctl to start the shutdown process in your UPS 
> >    hardware.  Use this script as an example, but change the paths to
> >    suit your system:
> 
> My bad.  I did edit rc.shutdown on both a 5.4 and a 6.0 system with no
> troubles.  The end of my file shows this:
> 
> # Inserted next 5 lines March 13, 2006 for UPS shutdown.
> if (test -f /etc/killpower)
> then
> echo "Killing the power, bye!"
> /usr/local/libexec/nut/upsdrvctl shutdown
> fi
> 
> echo '.'
> exit 0
> 
        But doesn't that immediately shut down your system causing it
to need FSCK when it comes back up?

                Thanks, Tuc
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to