From owner-freebsd-hackers Thu May 16 8: 5:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id A7EBE37B407 for ; Thu, 16 May 2002 08:04:53 -0700 (PDT) Received: (qmail 57978 invoked from network); 16 May 2002 15:12:41 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 16 May 2002 15:12:41 -0000 Received: (qmail 28594 invoked by uid 1000); 16 May 2002 15:04:14 -0000 Date: Thu, 16 May 2002 18:04:14 +0300 From: Peter Pentchev To: "Karsten W. Rohrbach" Cc: Attila Nagy , Patrick Thomas , freebsd-hackers@FreeBSD.org Subject: Re: reboot your own jail ? Message-ID: <20020516180414.H349@straylight.oblivion.bg> Mail-Followup-To: "Karsten W. Rohrbach" , Attila Nagy , Patrick Thomas , freebsd-hackers@FreeBSD.org References: <20020516003127.I17484-100000@utility.clubscholarship.com> <20020516144159.C349@straylight.oblivion.bg> <20020516162219.E45898@mail.webmonster.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="7J16OGEJ/mt06A90" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020516162219.E45898@mail.webmonster.de>; from karsten@rohrbach.de on Thu, May 16, 2002 at 04:22:19PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --7J16OGEJ/mt06A90 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 16, 2002 at 04:22:19PM +0200, Karsten W. Rohrbach wrote: > Attila Nagy(bra@fsn.hu)@2002.05.16 13:50:02 +0000: > > Hello, > >=20 > > > In theory, you could use ports/sysutils/daemontools/, specifically the > > > 'supervise' utility. I have been thinking about setting up a jail us= ing > > > a supervised service for some time now, never had the time to actually > > > sit down and do it, though.. > > It works OK with services that don't go to background. >=20 > fghack, included in daemontools, makes backgrounding daemons running > bound in the foreground, at the expense of FDs. just a sidenote. Yeah, well, I thought of fghack too; the problem is that jail(8) does not leave a daemon to supervise at all.. All that jail(8) does is start a process in the jail specified, then exit when that process dies; and if the command executed is '/bin/sh /etc/rc', it finishes as soon as all the daemons are started. Okay, forget I said anything about supervise; it does not seem to be applicable for jails at all :( G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence every third, but it still comprehensible. --7J16OGEJ/mt06A90 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE848pt7Ri2jRYZRVMRAmFeAJ9KfEfrXIZfe/vfuGmWmvpzJ/gs8ACgmNWZ LKk71is3/bUf6Ec9/okVzDA= =RYG7 -----END PGP SIGNATURE----- --7J16OGEJ/mt06A90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message