Description of problem: Not sure is this is real problem or not but reporting anyway. When starting (accidentally or scripted or for some other reason) slapd twice one gets a confusing error message: root@localhost:~# /etc/init.d/slapd stop Stopping slapd: [ OK ] root@localhost:~# /etc/init.d/slapd start Starting slapd: [ OK ] root@localhost:~# /etc/init.d/slapd start Starting slapd: ln: creating hard link `/var/run/slapd.pid': File exists root@localhost:~# Perhaps stdout/stderr from ln could be redirected to /dev/null to avoid such a confusing message. Redirection could be done especially after bug 533157 has been fixed. Thanks. Version-Release number of selected component (if applicable): F12B.
Reassigning to openldap component.
I don't think this is the best option here. We should rather find out why there is pid file present if slapd isn't started. Could you give me some info regarding this?
As shown by the example, this happens only if the users (erroneously) start the slapd server twice in a row. Perhaps this just a luser error and as such there is no need for a change in the script.
Created attachment 368348 [details] Patch adding detection if slapd is started I think modification is in order here - when slapd is started, init script should detect it and don't try to start it again. I made a simple patch doing this. If it is acceptable solution, I'll commit the changes to CVS.
This seems to be a bit problematic: root@localhost:~# rm -rf /etc/openldap/slapd.d/ root@localhost:~# /etc/init.d/slapd stop slapd (pid 2772) is running... root@localhost:~# /etc/init.d/slapd start find: `directory/': No such file or directory Starting slapd: ln: creating hard link `/var/run/slapd.pid': File exists root@localhost:~# killall slapd root@localhost:~# /etc/init.d/slapd stop Stopping slapd: [FAILED] root@localhost:~# /etc/init.d/slapd status slapd is stopped root@localhost:~# /etc/init.d/slapd start slapd is stopped root@localhost:~#
Ok, first thing - I forgot to add > /dev/null to status calls, that's why "slapd is running" line is there. Second - I don't get how it is possible that the ln error message persists. Could you run service slapd status and echo return code before starting slapd? And the last thing - when killing slapd manually, service slapd stop isn't going to work and service slapd start as well. service slapd status should inform you about that by means of its return code, try to check it. If it detects incorrectly stopped slapd, it is up to system admin to fix the problem first and start slapd afterwards.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Please note that this was the error I was most worried: root@localhost:~# /etc/init.d/slapd stop slapd (pid 2772) is running...
That's not an error, it's an output of status function, called to figure out if slapd is running. That output is now suppressed.
openldap-2.4.19-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/openldap-2.4.19-1.fc12
openldap-2.4.19-1.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/F12/FEDORA-2009-11725
openldap-2.4.19-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.