From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 23 06:36:26 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E99C2106564A for ; Mon, 23 Apr 2012 06:36:26 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 66CAA8FC15 for ; Mon, 23 Apr 2012 06:36:26 +0000 (UTC) Received: by lbbgm6 with SMTP id gm6so5322822lbb.13 for ; Sun, 22 Apr 2012 23:36:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=vcjQZitpZMyOj519MSsywIA+lZzVkI6JR1pUNobxEOs=; b=c+HeDx/X7V0EnP8s2LWuUsdrdg6IFOqVzAUZ2eij7Db+VX7rf6luPBLuyJxyyA4z0I a4yoDkPRGUIyZBdNE6tlCz7N4WWvFh2VZE2alUFv4XMBhSwfWwQj8pmE8wtAMuQIbS0O QVRH+VQu59LVSFZgpCaqbNNyKyN+VNiOlK8mjYOMM/28iPXjMveg+aYxN0bKvTQ5vhaJ azVBZAGjcKFs54h71Hejlm0acynmLY0imr+lZKQKim7id+PfuvB54tG4Xe/lDBbUMU7A /goCQSkCGgn1hDRcKbdzt+ESz8/pAkaoTLUBGpxHLybOl+9jdBoW2M7XVn2OtFyOg6JT td+Q== Received: by 10.152.112.97 with SMTP id ip1mr899949lab.31.1335162985208; Sun, 22 Apr 2012 23:36:25 -0700 (PDT) Received: from zont-osx.local (ppp95-165-137-153.pppoe.spdop.ru. [95.165.137.153]) by mx.google.com with ESMTPS id pb13sm14613546lab.16.2012.04.22.23.36.24 (version=SSLv3 cipher=OTHER); Sun, 22 Apr 2012 23:36:24 -0700 (PDT) Message-ID: <4F94F867.50703@zonov.org> Date: Mon, 23 Apr 2012 10:36:23 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: rank1seeker@gmail.com References: <20120422.120742.857.2@DOMY-PC> In-Reply-To: <20120422.120742.857.2@DOMY-PC> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQk20bYHYD6M43FnLPdJ3pU0WOA7IKGXvrqZt18K73PQ4IvNnWxppMJgs4RcPihHG+QPRIcQ Cc: hackers@freebsd.org 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: Mon, 23 Apr 2012 06:36:27 -0000 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