From owner-freebsd-hackers Thu May 16 11: 3:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by hub.freebsd.org (Postfix) with ESMTP id ED97A37B400 for ; Thu, 16 May 2002 11:03:42 -0700 (PDT) Received: from localhost.localdomain (earth.hub.org [64.49.215.11]) by localhost (Postfix) with ESMTP id 05FE0103675; Thu, 16 May 2002 15:03:42 -0300 (ADT) Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by earth.hub.org (Postfix) with ESMTP id 0E47C103676; Thu, 16 May 2002 15:03:22 -0300 (ADT) Date: Thu, 16 May 2002 15:03:22 -0300 (ADT) From: "Marc G. Fournier" To: Patrick Thomas Cc: freebsd-hackers@freebsd.org Subject: Re: reboot your own jail ? In-Reply-To: <20020516095228.R79837-100000@utility.clubscholarship.com> Message-ID: <20020516145953.H6260-100000@mail1.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 from the man page: Managing the Jail Normal machine shutdown commands, such as halt(8), reboot(8), and shutdown(8), cannot be used successfully within the jail. To kill all processes in a jail, you may log into the jail and, as root, use one of the following commands, depending on what you want to accomplish: kill -TERM -1 kill -KILL -1 Last I read, a process couldn't trap SIGKILL to do anything with it, wheres SIGTERM is trappable, so a proper shutdown of the process can be accomplished, whereas -KILL just blows it out of the water ... On Thu, 16 May 2002, Patrick Thomas wrote: > > why -TERM ? the jail man page recommends -KILL ... just curious... > > On Thu, 16 May 2002, Marc G. Fournier wrote: > > > > > web interface that is password protected that does: > > > > ssh root@ kill -TERM -1 > > > > > > > > > > > > On Thu, 16 May 2002, Patrick Thomas wrote: > > > > > > > > currently I reboot jails with this process: > > > > > > 1. someone logs into the jail and runs `kill -KILL -1` > > > 2. someone logs onto the BASE machine and starts it up again. > > > > > > I wish I could do this without involving the admin of the base machine. > > > > > > Has anyone come up with a strategy for allowing the root jail user to > > > successfully reboot their own jail without outside help ? > > > > > > 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. > > > > > > --pt > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message