Package: slapd
Version: 2.2.23-8
Severity: normal

When using syncrepl, the slapd initscript fails to stop the daemon on 
the consumer side. This isn't caused by the daemon running non-root, but 
rather by this:
plomb2:~# start-stop-daemon --stop --oknodo --retry 10 --pidfile 
"$SLAPD_PIDFILE" --exec /usr/sbin/slapd
No /usr/sbin/slapd found running; none killed.
plomb2:~# cat /var/run/slapd/slapd.pid
11391
plomb2:~# ps aux|grep slapd
root     11391  0.0  0.4 29524 5132 ?        Ss   10:06   0:00 /usr/sbin/slapd 
-h ldap://127.0.0.1/ ldaps:///
root     11395  0.0  0.0  2072  764 pts/0    R+   10:07   0:00 grep slapd
plomb2:~# ls -l /proc/11391/exe
lrwxrwxrwx  1 root root 0 2005-07-20 10:07 /proc/11391/exe -> /usr/lib/slapd

For some reason, /proc (which is the authoritative source for 
start-stop-daemon) thinks the daemon was run as /usr/lib/slapd, and thus 
the init script fails to stop it.

On the main server side, /proc shows /usr/sbin/slapd and it is killed 
correctly by the init script. The servers are both freshly installed 
sarge systems, on similar (though not exactly identical) hardware, 
running the same kernel (2.6.8-2-686-smp from sarge).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to