[Nut-upsuser] Various NUT issues/questions

Peter Selinger selinger at mathstat.dal.ca
Sat May 13 04:05:18 UTC 2006


Try poking around in /etc/rc.d, /etc/rc.d/rc.0. 

There is a reasonable explanation of how BSD init scripts work, with
example scripts, at 
http://www.linuxfromscratch.org/hints/downloads/files/bsd-init.txt

My understanding is that rc.shutdown is called before the actual
shutdown procedure, and is mostly intended (I assume) for user-defined
tasks not directly related to the physical shutdown itself.

-- Peter

Scott "Tuc" Ellentuch at T-B-O-H wrote:
> 
> > > 	Is there anything I can do to let the machine shut down
> > > all the way THEN the UPS? 
> > 
> > Yes, of course, that's what you were *supposed* to do :)
> > You have to put the command that yanks the power from the computer at
> > the very *end* of your shutdown script, i.e., after all the file
> > systems have been unmounted (or remounted read-only, in the case of
> > the root file system, which hopefully contains the newhidups driver
> > and upsdrvctl).
> >
> 	If there is someone running FreeBSD, I'd like to hear where
> they put it. From checking Google :
> 
> http://www.bsdforums.org/forums/archive/index.php/t-5071.html
> http://forums.bsdnexus.com/viewtopic.php?pid=3447
> 	(NetBSD, but FreeBSD acts the same)
> http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-August/000173.html
> 
> 	They all suggest putting it into the bottom of /etc/rc.shutdown .
> So thats where I put it. I tried to research the shutdown procedure for
> FreeBSD, and the best I could find was :
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-shutdown.html
> 
> 	Which again talks about rc.shutdown. I don't know what else
> it does afterwards so I can stick it in someplace else. 
> 
> 	So I put it where others suggest, and from where I could tell
> was the right place. So now I know its the wrong place. But then 
> does anyone know in FreeBSD where the right place is?
> > 
> > In other words, you want to yank the power just before /sbin/halt or
> > /sbin/reboot or whatever would be called (this is from Linux; might
> > look different but similar in *BSD). 
> >
> 	[INSTALL clip deleted...] 
> > 
> > > I tried changing ups.delay.shutdown
> > > to 2 minutes and found that its 2 minutes from when you set it,
> > > and it seemed to be a "HARD" down.. I had to press the button
> > > to get it to start up again.
> > > 
> > > 	I hate to be a pain, but I'm not sure if its the UPS
> > > I was guided to choose, my lack of knowledge of NUT, or my
> > > desire to have what isn't available.
> > 
> > It's point 2, mostly, I am afraid :) -- Peter
> > 
> 	So thats what the mailing list is for. :) Why I'm
> asking questions. Some get answered, some more haven't been.
> 
> 		Thanks, Tuc
> 




More information about the Nut-upsuser mailing list