[Nut-upsuser] Old thread on belkin

Arjen de Korte nut+users at de-korte.org
Mon Dec 28 10:03:45 UTC 2009


Citeren Gene Heskett <gene.heskett op gmail.com>:

> Just starting it with the fedora service command gets this:
> [root op coyote rules.d]# service ups start
> /etc/sysconfig/ups: line 4: UPSD_OPTIONS: command not found
> Starting UPS driver controller:                            [FAILED]
> Starting upsd:                                             [FAILED]
> Starting UPS monitor (master):                             [FAILED]
>
> UPSD_OPTIONS is empty in /etc/sysconfig/ups

We've have issues with the Fedora (and RedHat) scripts before. NUT  
doesn't use /etc/sysconfig/ups, this is something that your distro  
added. Chances are that this was written for an earlier version of NUT  
and since never changed. It's not needed either, since all information  
needed to startup the drivers, server and clients is in the NUT  
configuration files already. Could you try if running

     /path/to/upsdrvctl start
     /path/to/upsd
     /path/to/upsmon

improves the situation?

For debugging purposes you shouldn't use the startup scripts from  
*any* distribution, because they will invariably direct the startup  
messages to /dev/null (it might already tell you what's wrong now).

> And the log shows:
> Dec 27 18:16:56 coyote upsd[21863]: listening on 127.0.0.1 port 3493
> Dec 27 18:16:56 coyote upsd[21863]: Can't chdir to /var/run/nut: Permission
> denied

This is the STATEPATH directory (which is compiled in) and should be  
writeable by the user 'upsd' is running as. It almost certainly isn't.

Best regards, Arjen
-- 
Please keep list traffic on the list




More information about the Nut-upsuser mailing list