From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/907 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Trying to alter runit a little. Date: Thu, 17 Nov 2005 08:59:41 +0000 Message-ID: <20051117085412.28856.qmail@61a53ad4699a19.315fe32.mid.smarden.org> References: <20051112150224.47975.qmail@web33308.mail.mud.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132217730 17933 80.91.229.2 (17 Nov 2005 08:55:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2005 08:55:30 +0000 (UTC) Original-X-From: supervision-return-1143-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Nov 17 09:55:22 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EcfWi-0000O1-Hb for gcsg-supervision@gmane.org; Thu, 17 Nov 2005 09:53:52 +0100 Original-Received: (qmail 7767 invoked by uid 76); 17 Nov 2005 08:54:13 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 7762 invoked from network); 17 Nov 2005 08:54:13 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20051112150224.47975.qmail@web33308.mail.mud.yahoo.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:907 Archived-At: On Sat, Nov 12, 2005 at 07:02:24AM -0800, L. Jason Godsey wrote: > I've removed the requirment for runit to be pid 1. I want to replace > init within a FreeBSD jail. The first process to run isn't pid 1. > > Do you see any problems that will become of this? The runit-init program, normally installed as /sbin/init sends signals to pid 1 when told to reboot or halt the system. The runit program doesn't provide any other communication channel than signals (combined with magic files), so it relies on being the process with id 1. If you change that, nothing else should break but this IPC, but you then have the problem to find out the id of the runit process on shutdown. Tools like pidof are exactly what runit replaces with a reliable solution. > I just did a make package outside of the jail and the system froze, I'm > guessing the build process checks for error if runit is not pid 1. > > The machine locked up and I'll have to wait a few hours for someone to > go to the colo machine and power cycle it for me. I can't see how this relates to your change, building the package should never make the system hang, unless the system is buggy. Regards, Gerrit.