[Nut-upsdev] Error in FAQ

Arjen de Korte nut+devel at de-korte.org
Tue Feb 7 21:22:45 UTC 2006


There appears to be an error in the FAQ:

 Q: When I tell upsd to reload the config files, it complains in the
    syslog that it can't open the upsd.conf.  It read the files
    when it started up, so why is it failing now?

 A: Look at who upsd is running as now - use 'ps'.  You'll probably see
    "nobody" in that first column, even though you started it as root.
    This is intentional - upsd drops root shortly after it starts up,
    but _after_ it gets done reading your config files.

The last line is incorrect, looking at 'server/upsd.c' and from the
behaviour of upsd. It used to be like that (if memory serves), but
presently it drops root *before* reading the configuration files. So we
either need to change the wording of the FAQ, or change the behaviour of
'upsd'. Any ideas/suggestions?

Regards, Arjen



More information about the Nut-upsdev mailing list