From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/706 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: confused with /etc/runit/reboot Date: Sun, 13 Feb 2005 13:39:48 +0000 Message-ID: <20050213133841.13849.qmail@23edcef4d9be35.315fe32.mid.smarden.org> References: <420B7713.606@geeks.cl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108301770 11765 80.91.229.2 (13 Feb 2005 13:36:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2005 13:36:10 +0000 (UTC) Original-X-From: supervision-return-945-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Feb 13 14:36:10 2005 Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1D0Juw-0006Wz-38 for gcsg-supervision@gmane.org; Sun, 13 Feb 2005 14:36:06 +0100 Original-Received: (qmail 5155 invoked by uid 76); 13 Feb 2005 13:38:37 -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 5150 invoked from network); 13 Feb 2005 13:38:37 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <420B7713.606@geeks.cl> X-MailScanner-To: gcsg-supervision@gmane.org Xref: main.gmane.org gmane.comp.sysutils.supervision.general:706 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:706 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.