Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2012 15:34:26 +0200
From:      rank1seeker@gmail.com
To:        "Andrey Zonov" <andrey@zonov.org>, hackers@freebsd.org
Subject:   Re: service causes ps errors in chroot
Message-ID:  <20120425.133426.140.1@DOMY-PC>
In-Reply-To: <4F94F867.50703@zonov.org>
References:  <20120422.120742.857.2@DOMY-PC> <4F94F867.50703@zonov.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: Andrey Zonov <andrey@zonov.org>
To: rank1seeker@gmail.com
Cc: hackers@freebsd.org
Date: Mon, 23 Apr 2012 10:36:23 +0400
Subject: Re: service causes ps errors in chroot

> On 4/22/12 4:07 PM, rank1seeker@gmail.com wrote:
> > When I use '/usr/sbin/service' in chroot, it outputs:
> > ps: empty file: Invalid argument
> >    OR
> > ps: cannot read IdlePTD
> >
> > But it does work.
> >
> 
> I think you need devfs in your chroot.  Try this:
> 
> mount -t devfs devfs /path/to/chroot/dev
> 
> 
> -- 
> Andrey Zonov
> 


Today I tried to recreate/reproduce this, but nada.
Without devfs mounted inside of DESTDIR.

I don't know what happened?
'service' was supposed to be completely shell bassed, so I've was puzzled 
with 'ps' output.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120425.133426.140.1>