From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 25 13:34:36 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321061065741 for ; Wed, 25 Apr 2012 13:34:36 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B32758FC08 for ; Wed, 25 Apr 2012 13:34:35 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so108582bkc.13 for ; Wed, 25 Apr 2012 06:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; bh=mMpzMcwS2qBdOqoRCxOIzfpmueVlIg8ka5OOSqkIZ2g=; b=XijsUeaYe8eQ1XDx9aq0e9iNQuB4pAFWkye2iDYtyC94YLKNKAGStbOMVLFHKdOA2x fZ5omINbqtere/YnCiIGQOsV0ZlwfyF1geV4aLv1LFNV2LV829XZVNoleWRek/fRx01/ 6itsIr9+qYCTeNt8wyT+51MwctjM/ms9DdOQ0QJhNiF5Bm7cPO8jLvyZj/INZDTencsI e6JPelKtLYihvN4PFm6cdo4vJVpmURKn5Zc83smrpdalkvUhxr8KlEH8Ib7EjnlUsYw1 PF3DxRgM/m7LdLyFZSlqLV1YpKiKQDMTDZTRynBiLPTfWSXCCVVJ3tIJCudRQe8MhRQo KoFQ== Received: by 10.204.133.195 with SMTP id g3mr859790bkt.73.1335360869229; Wed, 25 Apr 2012 06:34:29 -0700 (PDT) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id im9sm34650664bkc.5.2012.04.25.06.33.56 (version=SSLv3 cipher=OTHER); Wed, 25 Apr 2012 06:34:24 -0700 (PDT) Message-ID: <20120425.133426.140.1@DOMY-PC> From: rank1seeker@gmail.com To: "Andrey Zonov" , hackers@freebsd.org Date: Wed, 25 Apr 2012 15:34:26 +0200 In-Reply-To: <4F94F867.50703@zonov.org> References: <20120422.120742.857.2@DOMY-PC> <4F94F867.50703@zonov.org> X-Mailer: POP Peeper (3.8.1.0) Cc: Subject: Re: service causes ps errors in chroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 13:34:36 -0000 ----- Original Message ----- From: Andrey Zonov 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.