Bug 573804
| Summary: | /etc/init.d/slapd: restart doesn't start slapd if the service is currently stopped | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andrew McNabb <amcnabb> |
| Component: | openldap | Assignee: | Jan Zeleny <jzeleny> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | jzeleny, mateenaslam |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openldap-2.4.19-4.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-04-09 01:30:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
openldap-2.4.21-5.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/openldap-2.4.21-5.fc13 openldap-2.4.19-4.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/openldap-2.4.19-4.fc12 openldap-2.4.21-5.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update openldap'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/openldap-2.4.21-5.fc13 openldap-2.4.19-4.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update openldap'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/openldap-2.4.19-4.fc12 openldap-2.4.19-4.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. The bug still exists and i am unable to start slapd after upgrade ah' my db was got currupt, slapd is working fine now. openldap-2.4.21-8.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/openldap-2.4.21-8.fc13 openldap-2.4.21-8.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |
As far as I can tell, most (all) other services follow this convention with respect to "restart": 1) Try to stop the service. If this works, print "[ OK ]", otherwise print "[FAILED]". 2) Try to start the service. If this works, print "[ OK ]", otherwise print "[FAILED]". However, "/etc/init.d/slapd restart" will quit silently if slapd is already stopped. This is unintuitive and inconsistent with other Fedora services. Fortunately, fixing this simply involves removing the line "status -p $pidfile ${slapd} > /dev/null 2>&1 || exit 7" from the restart case and the line "status -p $pidfile ${slapd} > /dev/null 2>&1 || exit 0" from the condrestart case.