Description of problem: service apcupsd status return value $? is 0 even if it is not running. Version-Release number of selected component (if applicable): apcupsd-3.12.4-4.fc6 How reproducible: always Steps to Reproduce: 1.service apcupsd status 2.echo $? 3. Actual results: 0 Expected results: 1 Additional info: adding || exit 1 in line 51 of /etc/init.d/apcupsd file will solve it
Fixed in 3.12.4-5.fc6. Note that the script has been modified to follow LSB conventions an will return different non-zero exits codes depending on the situation.