FS#27873 - [openldap] init script does not stop the process

Attached to Project: Arch Linux
Opened by Caleb Tennis (ctennis) - Sunday, 08 January 2012, 16:33 GMT
Last edited by Eric Belanger (Snowman) - Monday, 09 January 2012, 22:48 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The init script for openldap uses kill to try and stop the process. This doesn't seem to stop it though, it continues to run happily.

ie: /etc/rc.d/slapd stop doesn't stop the process

In reading the openldap docs, it seems like the preferred method is using SIGINT vs SIGTERM. Thus I propose changing the stop portion of the init script to "kill -INT"
This task depends upon

Closed by  Eric Belanger (Snowman)
Monday, 09 January 2012, 22:48 GMT
Reason for closing:  Not a bug
Comment by Eric Belanger (Snowman) - Monday, 09 January 2012, 01:15 GMT
It seems to work here:

$ sudo /etc/rc.d/slapd start
Password:
:: Starting OpenLDAP [DONE]
559 eric@ovide $ ps aux |grep slapd
ldap 29211 0.0 0.1 71084 4712 ? Ssl 20:09 0:00 /usr/sbin/slapd -u ldap -g ldap
eric 29215 0.0 0.0 11572 1008 pts/1 S+ 20:09 0:00 grep --color=auto slapd
560 eric@ovide $ sudo /etc/rc.d/slapd stop
:: Stopping OpenLDAP [DONE]
561 eric@ovide $ ps aux |grep slapd
eric 29247 0.0 0.0 11572 1004 pts/1 S+ 20:09 0:00 grep --color=auto slapd
Comment by Caleb Tennis (ctennis) - Monday, 09 January 2012, 14:08 GMT
Ah, you are correct. In my case, the issue is caused because I have multiple slapds replication to each other. A kill doesn't stop the daemon properly, because it's still talking to other daemons. This may be a deeper issue inside openldap itself, but once I stop replication this seems to start/stop the daemon just fine.

This can be closed.

Loading...