Debian bug report logs - #1666
C-A-D doesn't work after shutdown -h

Package: sysvinit; Reported by: Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>; 18 days old.

Message received at debian-bugs:


From pixar.com!bruce Fri Oct 13 11:54:41 1995
Return-Path: <bruce@pixar.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t3pFg-000CvGC; Fri, 13 Oct 95 11:54 PDT
Received: from mongo.pixar.com by pixar.com with SMTP id AA22998
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 13 Oct 1995 11:54:17 -0700
Received: by mongo.pixar.com (Smail3.1.28.1 #15)
	id m0t3pFB-00051TC; Fri, 13 Oct 95 11:54 PDT
Message-Id: <m0t3pFB-00051TC@mongo.pixar.com>
X-Mailer: exmh version 1.6.2 7/18/95
To: Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>,
        debian-bugs@Pixar.com
Cc: bruce@Pixar.com
Subject: Re: Bug#1666: C-A-D doesn't work after shutdown -h 
In-Reply-To: Your message of "Fri, 13 Oct 1995 15:20:24 PDT."
             <199510131420.PAA01681@i17linuxb.ists.pwr.wroc.pl> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 13 Oct 1995 11:54:09 -0700
From: Bruce Perens <bruce@Pixar.com>


marekm@i17linuxb.ists.pwr.wroc.pl said:
> add a reboot() call with correct magic values in the halt program.

It really belongs in the "init" program. OK, I'll do that.

By the time the system is halted, all disks are mounted read-only, and it is
no longer possible to write the run level.

I'll look at the other problems.

	Bruce

--
-- Attention Radio Amateurs: For information on "Linux for Hams",
-- read the WWW page http://www.hams.com/LinuxForHams, 
-- or e-mail the word "help" to info@hams.com


Acknowledgement sent to Bruce Perens <bruce@Pixar.com>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1666; Package sysvinit. Full text available.

Message received at debian-bugs:


From i17linuxb.ists.pwr.wroc.pl!marekm Fri Oct 13 07:20:58 1995
Return-Path: <marekm@i17linuxb.ists.pwr.wroc.pl>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t3kyn-000DJ0C; Fri, 13 Oct 95 07:20 PDT
Received: from i17linuxb.ists.pwr.wroc.pl by pixar.com with SMTP id AA04274
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 13 Oct 1995 07:20:13 -0700
Received: (from marekm@localhost) by i17linuxb.ists.pwr.wroc.pl (8.6.12/8.6.9) id PAA01681 for debian-bugs@pixar.com; Fri, 13 Oct 1995 15:20:26 +0100
From: Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>
Message-Id: <199510131420.PAA01681@i17linuxb.ists.pwr.wroc.pl>
Subject: C-A-D doesn't work after shutdown -h
To: debian-bugs@pixar.com
Date: Fri, 13 Oct 1995 15:20:24 +0100 (MET)
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 1517      

Package: sysvinit
Version: 2.57b-1

After the system is halted, the three finger salute doesn't reboot it
(instead, init complains about no /var/log/initrunlvl).  To fix: use
the ctrlaltdel program from util-linux (add "ctrlaltdel hard" after
the filesystems are unmounted in /etc/init.d/halt), or add a reboot()
call with correct magic values in the halt program.

BTW, I'm not sure if too much FSSTND is a good idea here - if /var is
a separate filesystem and it is not mounted, it is not possible to change
runlevels.  The traditional file name is /etc/initrunlvl.  Same goes for
the shutdown.pid file, too.

Another problem with sysvinit: sometimes, if I press Ctrl-Alt-Del, it
prints the following messages (from memory, they may differ slightly):

INIT: Switching to runlevel 6
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
INIT: No more processes left in runlevel 6

and then just hangs (but some processes are still running, for example
gpm - I can see that by moving the mouse).  Pressing C-A-D again doesn't
help (results only in two INIT: messages, the first and fourth one),
only the reset button does.  Small suggestion for init (unless it already
does this): no matter what is in the /etc/inittab "ctrlaltdel" line,
always sync() on C-A-D before doing anything else.

While we are at it, yet another (only cosmetic) problem with init:
I suggest to do something like "stty sane" in shutdown scripts -
the shutdown messages are printed without carriage returns...

Marek

Acknowledgement sent to Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1666; Package sysvinit. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov