From owner-freebsd-jail@FreeBSD.ORG Fri Oct 24 12:25:30 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2B95E21 for ; Fri, 24 Oct 2014 12:25:29 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A989BAB for ; Fri, 24 Oct 2014 12:25:29 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x12so951302wgg.20 for ; Fri, 24 Oct 2014 05:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :thread-index:content-language; bh=cARjntRxqg2vUCSXBggwPGfkUh4i6J9eUQiE8TF67nM=; b=zEvJXK9TSSU054ovynG4O7FopDzeHxD0BGbRx8OW7gPRv6RfsGTbKyMWT/L5piEaDA e0lhcYG+Chrq4I7QI/k+oH7uBfMRPVpPmGibwbEs71yos1Yy296raY1izI5NMaMS76YC KtQDqb7LOWSCA8nCRAkj1BZBSX4Bdl8Bj6HwSP9tBJbu48zh3WDpafN81QUn2KQBoa/q Q+10/9DEfJ7UvTqXNW+WYna8iMG//g1u0VLmZ/inVT7PVYpUJIOxVELGjLmodw7I/jK0 y6+ZiSeRaqi56Fm7hoPwTA2mPfxNFCMp7JO1BAPHODDgs4tvtGn1fe2MLA31kj/trVS9 mjrQ== X-Received: by 10.180.95.195 with SMTP id dm3mr3755727wib.29.1414153527745; Fri, 24 Oct 2014 05:25:27 -0700 (PDT) Received: from botmachine (muszelka.nat.student.pw.edu.pl. [194.29.137.5]) by mx.google.com with ESMTPSA id w13sm5474158wjq.29.2014.10.24.05.25.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Oct 2014 05:25:26 -0700 (PDT) From: "Marcin Michta" To: Subject: vnet/vimage technical information Date: Fri, 24 Oct 2014 14:25:49 +0200 Message-ID: <000001cfef85$a695d5c0$f3c18140$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac/vhXXUockIBGcjQVWLpFhT6/qDuQ== Content-Language: pl Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 12:25:30 -0000 Hello, Someone know where I can find some technical information about vnet/vimage? So far I have found only few lines, but nothing specific. I will be very grateful. Regards Martin From owner-freebsd-jail@FreeBSD.ORG Fri Oct 24 13:10:13 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9C4D775 for ; Fri, 24 Oct 2014 13:10:13 +0000 (UTC) Received: from mail-qg0-x22c.google.com (mail-qg0-x22c.google.com [IPv6:2607:f8b0:400d:c04::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AE604FF0 for ; Fri, 24 Oct 2014 13:10:13 +0000 (UTC) Received: by mail-qg0-f44.google.com with SMTP id j5so951195qga.3 for ; Fri, 24 Oct 2014 06:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oKNf+EU6LNbsHJyNDUhpTP47MXyL0ZHkWKrCombr8vE=; b=DOSZH5/f0mH+KcXWpFdtz1qX1XQZM2J52KcN9vRsdchtsuleqUCa9LlJAeMYWlrwJC FdhytNa47rMH9RBybgtck5oyVvSBAtySrDfYPbOuAgIDBzlqFG5TBDGRie1cyE4e05qm 3/NnKK0nUQ9KtqMfwzwWOyznZkrFdlL239kNyDOh4b3tJ0/LHS9Q1VlNBbNEvJ0WqsCE 1P3Bsm6ZCjT64AZQN1DpbIMaOOQwvTq7KcrXQUm7KqjFU2zq36+doHabwz8y2qd0jfuN hhSBUJBLAboTMDd7NzfdJ+ZOByi+6AQRH8J5fv4Awmx9ldiDPhnvCSpa2ozf79F1olhd uAHA== MIME-Version: 1.0 X-Received: by 10.140.80.165 with SMTP id c34mr5621369qgd.96.1414156212770; Fri, 24 Oct 2014 06:10:12 -0700 (PDT) Received: by 10.140.82.104 with HTTP; Fri, 24 Oct 2014 06:10:12 -0700 (PDT) Date: Fri, 24 Oct 2014 16:10:12 +0300 Message-ID: Subject: ttys in jail From: Richard Manyanza <1.liseki@gmail.com> To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 13:10:14 -0000 Hi! In a non-jail FreeBSD instance I have a service I want supervised as an entry in /etc/ttys so whenever it dies it gets restarted. I am trying to do the same in a jail but after adding an entry to /etc/ttys and running init q, the service is not picked up. I am naive on the implementation details of jails but is what I am trying to do possible? If so is it then a matter of appropriate settings? Thank you for helping me wrap my mind around this. Richard From owner-freebsd-jail@FreeBSD.ORG Fri Oct 24 13:30:57 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2DAC711F for ; Fri, 24 Oct 2014 13:30:57 +0000 (UTC) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1D752DF for ; Fri, 24 Oct 2014 13:30:56 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1XhexD-000Mu5-BG; Fri, 24 Oct 2014 15:30:55 +0200 Date: Fri, 24 Oct 2014 15:30:55 +0200 From: Kurt Jaeger To: Richard Manyanza <1.liseki@gmail.com> Subject: Re: ttys in jail Message-ID: <20141024133055.GE66862@home.opsec.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 13:30:57 -0000 Hi! > In a non-jail FreeBSD instance I have a service I want supervised as an > entry in /etc/ttys so whenever it dies it gets restarted. This is a feature of the init process (man init). In a jail you do not have an proper 'init' process, so this will not work. > I am trying to do > the same in a jail but after adding an entry to /etc/ttys and running init > q, the service is not picked up. > > I am naive on the implementation details of jails but is what I am trying > to do possible? If so is it then a matter of appropriate settings? It needs a different approach, for example have a look at /usr/ports/sysutils/daemontools -- pi@opsec.eu +49 171 3101372 6 years to go ! From owner-freebsd-jail@FreeBSD.ORG Fri Oct 24 13:35:23 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91818506 for ; Fri, 24 Oct 2014 13:35:23 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 523885DF for ; Fri, 24 Oct 2014 13:35:23 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id q107so969644qgd.40 for ; Fri, 24 Oct 2014 06:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QruCsuBtSlosiMnTWh5jjpsQzh0CEmJaYfxxgBuCERo=; b=bgl3ywIgkfDy1mMUX/aqXL7X6kJtN1uoyAyS8KkNJ4t+9eB+5vOzq5s19ApPPCLwbu Fr2hNBtUw/sT1EmIOCTT/LH02hdpKp/EifMZbTYxaxmzhkUNs24R/dKEr9yQZ2nfh7vz 2ceVpMw+zAQrBJ3ktngaMG3r1BNFtogAKd1/w8O8r9D52pihbU2lYwZqm50F7IHr47/m KhuPmWqwKYdrWzX2L7KtqGjqQBnxID/xu7WGeadd3c8ziMudr3Q3asqt5puW3jTK5IBO DGwDPzUXsJxHcXMHbNeU1wGjX/at+RVnSgDjvEaKnZDIMqnYkE7wfQnQ5shE1fijur0V RWNw== MIME-Version: 1.0 X-Received: by 10.229.37.138 with SMTP id x10mr6053471qcd.5.1414157722153; Fri, 24 Oct 2014 06:35:22 -0700 (PDT) Received: by 10.140.82.104 with HTTP; Fri, 24 Oct 2014 06:35:22 -0700 (PDT) In-Reply-To: <20141024133055.GE66862@home.opsec.eu> References: <20141024133055.GE66862@home.opsec.eu> Date: Fri, 24 Oct 2014 16:35:22 +0300 Message-ID: Subject: Re: ttys in jail From: Richard Manyanza <1.liseki@gmail.com> To: Kurt Jaeger Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 13:35:23 -0000 Thanks for the clarification Kurt! And for the pointing out daemontools. I have actually just started setting up /usr/ports/sysutils/runit. I guess I was playing around with the poor man's version. On Fri, Oct 24, 2014 at 4:30 PM, Kurt Jaeger wrote: > Hi! > > > In a non-jail FreeBSD instance I have a service I want supervised as an > > entry in /etc/ttys so whenever it dies it gets restarted. > > This is a feature of the init process (man init). > > In a jail you do not have an proper 'init' process, so this will not work. > > > I am trying to do > > the same in a jail but after adding an entry to /etc/ttys and running > init > > q, the service is not picked up. > > > > I am naive on the implementation details of jails but is what I am trying > > to do possible? If so is it then a matter of appropriate settings? > > It needs a different approach, for example have a look at > > /usr/ports/sysutils/daemontools > > -- > pi@opsec.eu +49 171 3101372 6 years to > go ! > From owner-freebsd-jail@FreeBSD.ORG Fri Oct 24 13:38:18 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C14BE5EC for ; Fri, 24 Oct 2014 13:38:18 +0000 (UTC) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8267F60C for ; Fri, 24 Oct 2014 13:38:18 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1Xhf4L-000MwZ-Vr; Fri, 24 Oct 2014 15:38:17 +0200 Date: Fri, 24 Oct 2014 15:38:17 +0200 From: Kurt Jaeger To: Richard Manyanza <1.liseki@gmail.com> Subject: Re: ttys in jail Message-ID: <20141024133817.GF66862@home.opsec.eu> References: <20141024133055.GE66862@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 13:38:18 -0000 Hi! > Thanks for the clarification Kurt! And for the pointing out daemontools. I > have actually just started setting up /usr/ports/sysutils/runit. I guess I > was playing around with the poor man's version. Oh, runit seems to really replace daemontools. Please note that daemontools is pretty old and no longer maintained upstream (as far as I understand). -- pi@opsec.eu +49 171 3101372 6 years to go !