From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1184 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: rebooting on read-only /? Date: Fri, 30 Jun 2006 08:01:09 +0000 Message-ID: <20060630080109.22251.qmail@cd774ba989f71b.315fe32.mid.smarden.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151654453 22360 80.91.229.2 (30 Jun 2006 08:00:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2006 08:00:53 +0000 (UTC) Original-X-From: supervision-return-1420-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jun 30 10:00:51 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FwDvl-0000u4-DB for gcsg-supervision@gmane.org; Fri, 30 Jun 2006 10:00:49 +0200 Original-Received: (qmail 16134 invoked by uid 76); 30 Jun 2006 08:01:10 -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 16129 invoked from network); 30 Jun 2006 08:01:09 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1184 Archived-At: On Wed, Jun 28, 2006 at 06:27:19PM +0000, Robert Edmonds wrote: > I have a server using runit as init and the only drive in the machine > has experienced a block layer failure and has been write-protected. > > Now, when I attempt to reboot, > > # init 6 > init: fatal: unable to create /etc/runit/stopit: read-only file system > > Is there any way to signal runit to reboot the machine without touching > the filesystem, even uncleanly? Maybe something akin to sysvinit's > "reboot -f"? Send the runsvdir process a TERM signal, so that stage 2 exits cleanly. runit will then enter stage 3. runsvdir(8): SIGNALS If runsvdir receives a TERM signal, it exits with 0 immediately. runit(8): STAGE 2 runit runs /etc/runit/2, which should not return until system shutdown; if it crashes, or exits 111, it will be restarted. IIRC 'reboot -f' doesn't do anything with the init process, but simply hard-reboots the machine, I posted a simple program that also does that here http://article.gmane.org/gmane.comp.sysutils.supervision.general/315 HTH, Gerrit.