Re: Jailed slapd process not visible with ps within a jail
On 04/07/2012 06:20, Matthias Petermann wrote: 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 ?? IsJ0:00,06 /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fop What I am doing wrong? Did I miss some important fact? What does # ps -uxp 6255 show, from within the jail? (if you've restarted slapd since, substitute the current PID, obviously.) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Jailed slapd process not visible with ps within a jail
Hi Matthew, thanks for your response. On Wed, 04 Jul 2012 08:05:00 +0100 Matthew Seaman matt...@freebsd.org wrote: What does # ps -uxp 6255 show, from within the jail? (if you've restarted slapd since, substitute the current PID, obviously.) This is funny, I restarted the whole system since my last mail and now I cannot reproduce the issue. The process shows up in both the host and the jail. When I had the issue I also tried the ps aux without grep but did not see the process too. Actually the jail is very thin, so this could be overseen. Following man(1) the -p switch does apply a filter by process id, I guess the process should have been visible also without? Kind regards, Matthias -- Matthias Petermann matth...@d2ux.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Jailed slapd process not visible with ps within a jail
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 r...@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 ?? IsJ0: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 matth...@d2ux.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org