opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-questions@freebsd.org 4 July 2012 • 1:20PM -0400

Jailed slapd process not visible with ps within a jail
by Matthias Petermann

REPLY TO AUTHOR
 
REPLY TO GROUP




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@obri...:/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...>
_______________________________________________
freebsd-questions@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.