Citeren Gene Heskett <gene.hesk...@gmail.com>:

Just starting it with the fedora service command gets this:
[r...@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


_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to