Date: Wed, 4 Jul 2012 07:20:48 +0200 From: Matthias Petermann <matthias@d2ux.net> To: freebsd-questions@freebsd.org Subject: Jailed slapd process not visible with ps within a jail Message-ID: <20120704072048.4b1645c0.matthias@d2ux.net>
next in thread | raw e-mail | index | archive | help
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@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@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@d2ux.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120704072048.4b1645c0.matthias>