[Nut-upsuser] config file locations

Gene Heskett gheskett at wdtv.com
Mon Oct 20 03:05:11 UTC 2014


On Sunday 19 October 2014 22:03:23 Charles Lepple did opine
And Gene did reply:
> Hi Gene,
> 
> On Oct 18, 2014, at 7:35 PM, Gene Heskett <gheskett at wdtv.com> wrote:
> > Greetings;
> > 
> > I found  pdf user manual which explains a few things that might help.
> > 
> > However, for a ubuntu flavor, the various .conf etc files seem to be
> > in /etc/nut.
> 
> We have an open ticket about that[*]; basically, the official NUT
> documentation needs to be a bit more explicit that the paths are what
> you would get with a vanilla source install, and that distributions
> will most likely be different.
> 
> [*] https://github.com/networkupstools/nut/issues/152
> 
> > But this pdf says they are in /usr/local/ups/etc, and yes indeed
> > there are some there, with the .sample files being owned by root,
> > and the rest are user 503, whoever he may be.
> 
> If it's the same "coyote" machine from 2010, the archives indicate that
> you installed from source at one point. The Ubuntu packages shouldn't
> have written to /usr/local.
> 
> > Are these just a sample storage in case one needs to start from
> > square #0 again?  Or what?
> 
> Yes, but the paths in those files are from the source install. I forget
> what Ubuntu did with the 10.04 packages, but it probably shipped
> *.sample files in either /etc/nut or /usr/share/doc/nut/examples.
> 
> > Then on down the page it says it should start by using upsdrvctl
> > start, I get
> > sudo upsdrvctl start
> > Network UPS Tools - UPS driver controller 2.4.3
> > Network UPS Tools - Generic HID driver 0.34 (2.4.3)
> > USB communication driver 0.31
> > Using subdriver: Belkin HID 0.12
> > 
> > Broadcast Message from gene at coyote
> > 
> >        (somewhere) at 19:16 ...
> > 
> > Communications with UPS myups at localhost established
> > 
> > 
> > 
> > Broadcast Message from gene at coyote
> > 
> >        (somewhere) at 19:16 ...
> > 
> > Communications with UPS myups at localhost established
> > 
> > 
> > Broadcast Message from gene at coyote
> > 
> >        (somewhere) at 19:16 ...
> > 
> > Communications with UPS myups at localhost established
> > 
> > But why do I get 3 of them?
> 
> Good question, but it's going to be hard to tease apart the Ubuntu .deb
> install and the source install.
> 
> Note that some versions of /etc/init.d/nut (provided by Ubuntu) will
> start the driver as well as upsd and upsmon, so the separate
> "upsdrvctl start" is not necessary.
> 
> Do you have anything else installed to /usr/local? If not, it might be
> easier to move that directory aside. Then again, if you installed from
> source, it was probably due to something not being in the Ubuntu
> packages.
> 
> > So I go thru htop, after issueing stops to upsdrvctl and nut, then
> > restart the driver, then nut, and now my log is being spammed by:
> > Oct 18 19:25:51 coyote kernel: [117004.485575] usb 1-10: usbfs:
> > process 29641 (usbhid-ups) did not claim interface 0 before use
> > Oct 18 19:25:54 coyote kernel: [117007.499806] usb 1-10: usbfs:
> > process 29668 (usbhid-ups) did not claim interface 0 before use
> > Oct 18 19:25:54 coyote kernel: [117007.499850] usb 1-10: usbfs:
> > process 29668 (usbhid-ups) did not claim interface 0 before use
> > about 1/second.
> 
> With usbhid-ups, this tends to only happen when multiple drivers are
> running.

The stop command should kill it, doesn't, I have to go find it with htop 
and nuke it from there.

This is nut-2.7.2, and the kit was unpacked on 6/26/2014, so it is a local 
build.

But then oldtimers has hit, and according to synaptic, 2.4.3 from ubuntu 
repos was also installed.  So I have a flustercluck at best, and have 
removed the ubuntu version, and will reinstall from my later src.

I'll advise how that turns out in due time.
  
Thanks for your patience Charles.

Darn, the docs I pulled and printed 2-3 days ago are for 2.6.0.  I'll 
check my src tree.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS



More information about the Nut-upsuser mailing list