From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/314 Path: main.gmane.org!not-for-mail From: Richard A Downing FBCS Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit-1.0.0 release Date: Thu, 12 Feb 2004 17:41:20 +0000 Message-ID: <20040212174120.26bcb697@rad1.109bean.org.uk> References: <20040210153548.16191.qmail@56dafcc887170f.315fe32.mid.smarden.org> <20040211192355.17755561@rad1.109bean.org.uk> <20040211204212.12241.qmail@771d3fc1654724.315fe32.mid.smarden.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076607711 5416 80.91.224.253 (12 Feb 2004 17:41:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2004 17:41:51 +0000 (UTC) Original-X-From: supervision-return-552-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Feb 12 18:41:31 2004 Return-path: Original-Received: from antah.skarnet.org ([212.43.221.114]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1ArKqB-0008KI-00 for ; Thu, 12 Feb 2004 18:41:31 +0100 Original-Received: (qmail 911 invoked by uid 76); 12 Feb 2004 17:41:50 -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 905 invoked from network); 12 Feb 2004 17:41:50 -0000 Original-To: supervision@list.skarnet.org In-Reply-To: <20040211204212.12241.qmail@771d3fc1654724.315fe32.mid.smarden.org> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: )3Im=(Z2}JF~%h"mQQA=T9l8|T9W5Q<=D*$COP2](_#ucC_OV,,M,5*{LXS+Z*OM8mVHUMo3;T?e1 Y]:Q6eaMP)frF'*od^6oCU;0!r++}`G=XiY{g#(kr;'.@'jA8^Fu8,c^}>!){1vLv@W|(}YU11=txP ){Lv1[%Ye34lFYK(e,aCD|7;C4HtoWc!#]0D` wrote: > An exit code other than zero just causes a warning, stage 2 only is > skipped if stage 1 has crashed, e.g. due to a broken binary. I guess > that this happened here: > http://article.gmane.org/gmane.comp.sysutils.supervision.general/295 > http://thread.gmane.org/gmane.comp.sysutils.supervision.general/296 > > > If I exit -1, it just reports a warning and then enters stage 2 as > > normal. I want to be able to say 'things got too difficult in stage > > 1' and get straight to stage 3 and an orderly shutdown. > > It would be easy to change this in the runit.c source, but I'm curious > why you need it. What's the advantage of running stage 3 in this > situation?, if stage 1 cannot recover, it can possibly reboot > immediately. Gerrit, I have made progress and now run a standard shell in the recovery situation, modelling my script on the openbsd example. I would have liked to use sulogin, which is more secure, but as I was planning not to install sysVinit, and sulogin is part of that package, it's out for the moment, but see below. Next problem. You state above that the stage 1 script can reboot immediately. Well, the reboot script that your openbsd example uses is also a sysVinit script. If I call 'init 6' (or init 0) from within stage 1, I am, of course sending a signal to runit! Runit doesn't accept signals in stage 1! Catch 22? I'm beginning to think that I'm going to have to install SysVinit after all. (I may need wall, halt, poweroff, reboot, shutdown, and sulogin, these are all part of sysVinit) Cheers, Richard. -- Richard A Downing FBCS http://www.109bean.org.uk/ Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms.