supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gerrit Pape <pape@smarden.org>
Subject: Re: rebooting on read-only /?
Date: Fri, 30 Jun 2006 08:01:09 +0000	[thread overview]
Message-ID: <20060630080109.22251.qmail@cd774ba989f71b.315fe32.mid.smarden.org> (raw)
In-Reply-To: <e7uhm6$s9k$1@sea.gmane.org>

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.


      reply	other threads:[~2006-06-30  8:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 18:27 Robert Edmonds
2006-06-30  8:01 ` Gerrit Pape [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060630080109.22251.qmail@cd774ba989f71b.315fe32.mid.smarden.org \
    --to=pape@smarden.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).