From owner-freebsd-hackers Thu May 16 4:42:54 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 1E58737B407 for ; Thu, 16 May 2002 04:42:46 -0700 (PDT) Received: (qmail 57129 invoked from network); 16 May 2002 11:50:26 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 16 May 2002 11:50:26 -0000 Received: (qmail 20769 invoked by uid 1000); 16 May 2002 11:41:59 -0000 Date: Thu, 16 May 2002 14:41:59 +0300 From: Peter Pentchev To: Patrick Thomas Cc: freebsd-hackers@freebsd.org Subject: Re: reboot your own jail ? Message-ID: <20020516144159.C349@straylight.oblivion.bg> Mail-Followup-To: Patrick Thomas , freebsd-hackers@freebsd.org References: <20020516003127.I17484-100000@utility.clubscholarship.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ncSAzJYg3Aa9+CRW" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020516003127.I17484-100000@utility.clubscholarship.com>; from root@utility.clubscholarship.com on Thu, May 16, 2002 at 12:36:44AM -0700 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 --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 16, 2002 at 12:36:44AM -0700, Patrick Thomas wrote: >=20 > currently I reboot jails with this process: >=20 > 1. someone logs into the jail and runs `kill -KILL -1` > 2. someone logs onto the BASE machine and starts it up again. >=20 > I wish I could do this without involving the admin of the base machine. >=20 > Has anyone come up with a strategy for allowing the root jail user to > successfully reboot their own jail without outside help ? >=20 > I can think of some horrible hacks involving constantly checking if the > jail is running....and if it ever stops (presumably someone rebooted it) > then start it again...hopefully there is sonhmething more elegant than > that. In theory, you could use ports/sysutils/daemontools/, specifically the 'supervise' utility. I have been thinking about setting up a jail using a supervised service for some time now, never had the time to actually sit down and do it, though.. 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 What would this sentence be like if pi were 3? --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE845sH7Ri2jRYZRVMRAiUoAJ943CAiBrLZGwHd+9RflWnNI7ci9gCfZHoy yT8WrIm6ZzB/HgFiv3+YoAM= =rc+X -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message