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 ! >