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 !