Debian bug report logs - #1420
reboot too eager to reboot

Package: sysvinit; Reported by: Richard Kettlewell <richard@elmail.co.uk>; 40 days old.

Message received at debian-bugs:


From sfere.elmail.co.uk!richard Thu Sep 21 10:47:38 1995
Return-Path: <richard@sfere.elmail.co.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0svpij-0005lcC; Thu, 21 Sep 95 10:47 PDT
Received: from muskogee.elmail.co.uk by pixar.com with SMTP id AA20047
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 21 Sep 1995 10:47:16 -0700
Received: from sfere.elmail.co.uk ([193.116.29.15]) by muskogee.elmail.co.uk
	 with smtp id <m0svpiH-00032cC@muskogee.elmail.co.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Thu, 21 Sep 95 18:47 BST
Received: by sfere.elmail.co.uk
	id <m0svUyh-0002QeC@sfere.elmail.co.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 20 Sep 95 20:38 BST
Message-Id: <8Mo6T23B2@sfere.elmail.co.uk>
Date: Wed, 20 Sep 95 20:38:42 +0100 (BST)
From: Richard Kettlewell <richard@elmail.co.uk>
To: debian-bugs@pixar.com
Subject: reboot too eager to reboot

Package: sysvinit
Version: 2.56-5

Rebooting my work machine after three weeks uptime I did what I almost
invariably do at home and typed `reboot'.  At home this calls
shutdown, and tidies everything up nicely.  (I have the same version
of sysvinit both at home and at work.)

At work, however, the effect was to briefly print a message saying
something to the effect of ``cannot determine runlevel, doing a hard
reboot''.  It then rebooted immediately, in particular without
umounting anything.

The reboot man page notes that shutdown will be called if the system
is not in runlevel 0 or 6; I don't know what condition it is that
causes reboot to be unable to determine the runlevel but it seems to
be to be highly unreasonable to just assume that it's OK to reboot if
it can't work out whether or not it is.

More sensible semantics in this situation would be to only carry out
the reboot if the -f flag is present.

-- 
Richard Kettlewell                 <URL:http://www.elmail.co.uk/staff/richard/>
Work+home: <richard@elmail.co.uk>       Home only: <richard@sfere.elmail.co.uk>

Acknowledgement sent to Richard Kettlewell <richard@elmail.co.uk>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1420; 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