Jailed slapd process not visible with ps within a jail
Matthias Petermann
matthias at d2ux.net
Wed Jul 4 05:52:18 UTC 2012
Hello,
under my FreeBSD 9 I recently found a behavior I cannot explain. The systems fingerprint is:
netti2# uname -a
FreeBSD netti2 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012
root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
There is a Jail "myjail". I create a shell within the Jail with:
jail -c path=/jails/myjail ip4.addr=10.1.138 host.hostname=myjail command=/bin/sh
Within the Jail I have openldap installed, devfs is mounted to /jails/myjail/dev.
As the installation info proposed I added the following to rc.conf:
slapd_enable="YES"
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/"'
slapd_sockets="/var/run/openldap/ldapi"
Then I run the slapd server with /usr/local/etc/rc.d/slapd start.
When I now do "ps aux" within the Jail, it doesn't show me the slapd process but doing the same in the Host system, I can see it.
[matthias at netti2 /usr/home/matthias]$ ps ax|grep slap
6255 ?? IsJ 0:00,06 /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fop
What I am doing wrong? Did I miss some important fact?
Kind regards,
Matthias
--
Matthias Petermann <matthias at d2ux.net>
More information about the freebsd-questions
mailing list