[Nut-upsdev] Re: NUT docs bug & init-scripts for SuSE

Stanislav Brabec sbrabec at suse.cz
Tue Apr 4 09:41:03 UTC 2006

Arnaud QUETTE píše v Út 04. 04. 2006 v 09:05 +0200:
> >  Hello Arnaud, 
> Hi Alex, 
> >    First of all i want to thank you for such useful and convenient
> > system tool as NUT. I think it is one from most important tools
> > for server machines. And it make its work excellent. 
> thanks 
> >    I use NUT on SuSE distro and adapted init-scripts from package
> for
> > this distro style. Send you them with hope that you find them useful
> > for other users and may be include them in NUT package.

In last month the nut SuSE scripts were completely rewrote, because old
scripts were not working as they come out of factory. You can try the
latest scripts from:
If you don't use SuSE Linux 10.1, you should download .src.rpm package
and recompile it for your version.

Improvements are welcome.

> >    And one question. When i try use secure scheme that describe in
> > 'docs/FAQ' (with 'nutdev' and 'nutsrv' users) i get problem when
> > i tested power race conditions. When i run command
> >        /usr/local/ups/sbin/upsmon -c fsd

I am not sure, whether it is possible after quitting of upsd and

> > -----------------------------------------------------
> >    Same affect i can see when run command in shell:
> >        /usr/local/ups/bin/upsdrvctl -u nutdev shutdown
> >    I was forced return to 'nut:nut' scheme.
> >    With best wishes,

Looking at the new package, it uses upsdrvctl shutdown with root
privileges, and it works (well, tested only with USB).

> first note that Stanislav Brabec (official NUT maintainer for SuSE) 
> is part of the NUT Team, and is taking care of the NUT packages. 
> He's currently updating these for SuSE 10.1... 
> For your above problem, you need to change the /dev/ttyS0 
> ownership to nutdev so that you can access the port in RW mode.

If all commands with -u argument return this error, then it is a problem
of privileges. If only powerdown returns this error, then it is a
specific problem of late halt sequence.

> To do so, you need to look at udev. I've shipped udev scripts with 
> nut 2.0.3 as examples (these however need to be adapted. 
> Meanwhile, you can use some chown/chmod into the upsd init script... 

Well. This part is still missing in SuSE Linux 10.1. Most device things
were moved from udev to hal and we should decide, how exactly implement
it. Additionally, for serial UPS it will not help.

Best Regards / S pozdravem,

Stanislav Brabec
software developer
SuSE CR, s. r. o.                             e-mail: sbrabec at suse.cz
Drahobejlova 27                               tel: +420 296 542 382
190 00 Praha 9                                fax: +420 296 542 374
Czech Republic                                http://www.suse.cz/

More information about the Nut-upsdev mailing list