Description of problem: When SERVICE=no is set in /etc/sysconfig/man-db, the one-shot systemd job will fail. Version-Release number of selected component (if applicable): man-db-2.7.6.1-9.fc27.x86_64 How reproducible: Always Steps to Reproduce: 1. Set SERVICE=no in /etc/sysconfing/man-db 2. Reload systemd 3. Reboot Actual results: Perusing systemd logs after the reboot reports that the job has failed. This can also be reproduced without rebooting by starting the one-shot job manually with "systemctl start": ● man-db-cache-update.service Loaded: loaded (/usr/lib/systemd/system/man-db-cache-update.service; static; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2017-12-16 11:11:36 EST; 5min ago Process: 2856 ExecStart=/bin/sh -c [ "$SERVICE" != "no" ] && /usr/bin/mandb $OPTS (code=exited, status=1/FAILURE) Main PID: 2856 (code=exited, status=1/FAILURE) Dec 16 11:11:36 thinkpad systemd[1]: Starting man-db-cache-update.service... Dec 16 11:11:36 thinkpad systemd[1]: man-db-cache-update.service: Main process exited, code=exited, status=1/FAILURE Dec 16 11:11:36 thinkpad systemd[1]: Failed to start man-db-cache-update.service. Dec 16 11:11:36 thinkpad systemd[1]: man-db-cache-update.service: Unit entered failed state. Dec 16 11:11:36 thinkpad systemd[1]: man-db-cache-update.service: Failed with result 'exit-code'. Expected results: When configured thusly, the oneshot job should just do nothing and quietly go away. Additional info: The command line results in the executed command exiting with a non-zero exit status, when SERVICE=no. This gets interpreted as a failed job.
Commits: f26: https://src.fedoraproject.org/rpms/man-db/c/7bb3c7fad62c6c7b22071316a88303005dbf5214?branch=f26 f27, master: https://src.fedoraproject.org/rpms/man-db/c/05a499482d24ed8105b74c13a8dbb8a7dda10538
man-db-2.7.6.1-10.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d01a7839c0
man-db-2.7.6.1-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-13af4c1fb1
man-db-2.7.6.1-10.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d01a7839c0
man-db-2.7.6.1-8.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-13af4c1fb1
man-db-2.7.6.1-8.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
man-db-2.7.6.1-10.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.