From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 17:03:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14B831065671 for ; Wed, 16 Apr 2008 17:03:08 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id 520AB8FC24 for ; Wed, 16 Apr 2008 17:03:06 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 58791 invoked from network); 16 Apr 2008 20:36:24 +0400 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 16 Apr 2008 20:36:24 +0400 X-AntiVirus: Checked by Dr.Web [version: 4.44, engine: 4.44.0.09170, virus records: 358803, updated: 16.04.2008] Message-ID: <48062B06.3060501@itlegion.ru> Date: Wed, 16 Apr 2008 20:36:22 +0400 From: Artem Kuchin Organization: IT Legion User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: how to exec a process in a jail while being on the main host? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 17:03:08 -0000 For example, i have an already runing jail with some JID and i am logged in on the main host (which runs the jail). How can i run a new process inside the jail with a known JID w/o ssh-ing into that jail or doing a lot of strange manupulations? I am asking, because i have about 20 jails running and each has a running special control daemon which changes a lot and often. When change occures i need then to enter each jail as root, kill the old daemon, start the new one. This take a lot of time and is really annoying. -- Regards, Artem