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: confused with /etc/runit/reboot
Date: Sun, 13 Feb 2005 13:39:48 +0000	[thread overview]
Message-ID: <20050213133841.13849.qmail@23edcef4d9be35.315fe32.mid.smarden.org> (raw)
In-Reply-To: <420B7713.606@geeks.cl>

On Thu, Feb 10, 2005 at 12:00:35PM -0300, Alejandro Mery wrote:
> i just noticed that when i press ctrl-alt-del my machine halts.
> 
> i'm a bit confused with /etc/runit/{reboot,stopit}
> 
> on documentation you said that stage3 reboots if o+x /etc/runit/reboot, 
The /etc/runit/reboot file tells the runit program to either reboot or
halt the system when stage 3 terminates.

> and CONT makes it enter stage3 if o+x /etc/runit/stopit
Yes.

> but on the debian sample /etc/runit/reboot is never touch-ed/chmod-ed

True.  This means whether the system halts or reboots depends on the
current permissions of /etc/runit/reboot, and is not set explicitly.

> changing ctrl-alt-del to touch/chmod reboot instead of stop makes it not 
> enter stage3.
> should i touch/chmod both on ctrl-alt-del? i don't see proper results 
> neither.

If you want the system to always reboot (or halt) on ctrl-alt-del, chmod
/etc/runit/reboot additionally to /etc/runit/stopit in ctrlaltdel.  That
should do it.

Regards, Gerrit.


      reply	other threads:[~2005-02-13 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 15:00 Alejandro Mery
2005-02-13 13:39 ` 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=20050213133841.13849.qmail@23edcef4d9be35.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).