Description of problem: service ups start starts three daemons, all of which have problems: /sbin/$MODEL (as set in /etc/sysconfig/ups) can't read /dev/ttyS0 as it runs as nobody, and ttyS0 is owned by root and group-owned by uucp. This is a problem, and "chown nobody /dev/ttyS0" helps, but doesn't seem like the right thing to do. The next daemon /usr/sbin/upsd looks for a non-existant /etc/ups/ups.conf, and refuses to run after not finding it. We need to fix this with at least an example config file. Last, the /usr/sbin/upsmon daemon won't start at all, becuase it can't find the upsd daemon running. This should be fixed when problem #2 is fixed. Version-Release number of selected component (if applicable): 8.0 with all updates as of 02/10/2003 How reproducible: Steps to Reproduce: 1. change MODEL=none to MODEL=apcsmart in /etc/sysconfig/ups 2. "service ups start" Actual results: Starting apcsmart: Network UPS Tools - APC Smart protocol driver 0.60 (0.45.4) This program is currently running as nobody (UID 99) /dev/ttyS0 is owned by user root (UID 0), mode 0660 Change the port name, or fix the permissions or ownership of /dev/ttyS0 and try again. Unable to open /dev/ttyS0: Permission denied [FAILED] Starting upsd: Network UPS Tools upsd 0.45.4 /var/lib/ups is world readable Warning: no UPS definitions in ups.conf Fatal error: you need to define at least one UPS in your ups.conf! [FAILED] Starting UPS monitor (master): Network UPS Tools upsmon 0.45.4 Fatal error: insufficient power configured! Sum of power values........: 0 Minimum value (MINSUPPLIES): 1 Edit your upsmon.conf and change the values. Using power down flag file /etc/killpower [FAILED] Expected Results: A lot different ;-)
Being able to read /dev/ttyS0 (as user "nobody") is still a problem in pre-beta5 for Phoebe. Also, while /etc/ups.conf now exists, upsd still complains that "/var/lib/ups is world readable". Please fix!
1.2.0-5 should fix all this problem. Please test it again, thanks.
I still get this error with version 1.2.0-5: /var/lib/ups is world readable
1.2.0-6 should fix this problem. Could you please try again. Thanks