Bug#375067: [Pkg-openldap-devel] Bug#375067: Running a second
instance of slapd stops /etc/init.d/slapd stop from working
Matthijs Mohlmann
matthijs at cacholong.nl
Fri Jun 23 06:05:42 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Westby wrote:
> Package: slapd
> Version: 2.3.24-1
> Severity: minor
>
> [Apologies for the lack of additional information on the bug report, but slapd
> is only set up in a VM]
>
> Hi,
>
> I have been trying to debug some problems so I use -d quite often. If i forget
> to /etc/init.d/slapd stop before trying this then slapd -d from the command
> line fails as you would expect. Then when I try and stop the daemon with
> /etc/init.d/slapd stop it looks ok, but the daemon is left running, and must
> be killed, which is not so good.
>
> To reproduce
>
> /etc/init.d/slapd start
> slapd -d 1 (fails)
> /etc/init.d/slapd stop (nothing seems amiss)
> slapd -d 1 (fails again)
> /etc/init.d/slapd stop
> ..
> ..
> ..
>
> Doesn't stop the daemon.
>
> Thanks,
>
> James
>
I can't reproduce it here, just tried your flow to reproduce but that
didn't work:
/etc/init.d/slapd start (works)
slapd -d 1 (fails, because port is in use)
/etc/init.d/slapd stop (works, check pstree -u if slapd is running)
slapd -d 1 (works, because slapd is stopped)
/etc/init.d/slapd stop (works also, the 'slapd -d 1' is killed)
If you want to run a second instance of slapd, you can better try to
create another configuration file and set it up so that it doesn't
interfere with the other one.
But why do you want that ? slapd can run with multiple directories ?
Regards,
Matthijs Mohlmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEm4S22n1ROIkXqbARAtgEAJ9yQXh5dsMqmYRUgcHC2ug2stAeFgCfeAxd
421YTyCYAvUFTNTKBACLfb4=
=rkfS
-----END PGP SIGNATURE-----
More information about the Pkg-openldap-devel
mailing list