service causes ps errors in chroot

Andrey Zonov andrey at zonov.org
Mon Apr 23 06:36:27 UTC 2012


On 4/22/12 4:07 PM, rank1seeker at 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


More information about the freebsd-hackers mailing list