From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1442 Path: news.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: aborting at stage 1? Date: Tue, 19 Jun 2007 20:02:02 +0100 (WEST) Message-ID: References: <20070428165720.GR29193@linsec.ca> <20070619183202.24886.qmail@f2f18f9094771c.315fe32.mid.smarden.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1182279576 24353 80.91.229.12 (19 Jun 2007 18:59:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 18:59:36 +0000 (UTC) Cc: supervision@list.skarnet.org To: Gerrit Pape Original-X-From: supervision-return-1679-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jun 19 20:59:34 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1I0ivN-0000DV-UX for gcsg-supervision@gmane.org; Tue, 19 Jun 2007 20:59:34 +0200 Original-Received: (qmail 28604 invoked by uid 76); 19 Jun 2007 18:59:55 -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 28598 invoked from network); 19 Jun 2007 18:59:55 -0000 In-Reply-To: <20070619183202.24886.qmail@f2f18f9094771c.315fe32.mid.smarden.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1442 Archived-At: On Tue, 19 Jun 2007, Gerrit Pape wrote: > > Hi, > > if something goes wrong in stage 1, the /etc/runit/1 script should exit > 100. runit will then skip stage 2, and enter stage 3, see runit(8). > Possibly some things in stage 3 won't work if the root fs is mounted > read-only, but finally /etc/runit/3 will exit, and runit will either > halt or reboot after looking at /etc/runit/reboot. For read-only > filesystems, runit supports /etc/runit/reboot being a symlink, even a > dangling one, which can point into a ramdisk mount point. This applies I suppose one can even do without the ramdisk by mounting an appropriate "static" file over /etc/runit/reboot, with -o remount. A thing that doesn't seem to play well with a pure-runit approach is udevd. Maybe a solution would be to create a few static devices (the ones needed for a particular system) and then run udevd as a stage 2 service, to take care of things like pen drives and such. (Just some thoughts...) > HTH, Gerrit. > > Thanks, Jorge