From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 05:52:18 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDCCA1065677 for ; Wed, 4 Jul 2012 05:52:18 +0000 (UTC) (envelope-from matthias@d2ux.net) Received: from h1907788.stratoserver.net (h1907788.stratoserver.net [85.214.252.129]) by mx1.freebsd.org (Postfix) with ESMTP id 7D02C8FC12 for ; Wed, 4 Jul 2012 05:52:18 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by h1907788.stratoserver.net (Postfix) with ESMTP id BE45839EE5E9 for ; Wed, 4 Jul 2012 07:22:17 +0200 (CEST) Received: from h1907788.stratoserver.net ([127.0.0.1]) by localhost (h1907788.stratoserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J07vsg0O0WF5 for ; Wed, 4 Jul 2012 07:22:16 +0200 (CEST) Received: from netti2.colubris.lan (rrcs-72-43-6-94.nys.biz.rr.com [72.43.6.94]) by h1907788.stratoserver.net (Postfix) with ESMTP id 5250139EE5E5 for ; Wed, 4 Jul 2012 07:22:16 +0200 (CEST) Date: Wed, 4 Jul 2012 07:20:48 +0200 From: Matthias Petermann To: freebsd-questions@freebsd.org Message-Id: <20120704072048.4b1645c0.matthias@d2ux.net> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.6; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Jailed slapd process not visible with ps within a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 05:52:18 -0000 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