Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: hacknews
Subject: streamlined reboot (finally) 
Message-ID: <3547@utzoo.UUCP>
Date: Mon, 13-Feb-84 19:00:01 EST
Article-I.D.: utzoo.3547
Posted: Mon Feb 13 19:00:01 1984
Date-Received: Mon, 13-Feb-84 19:00:01 EST
Organization: U of Toronto Zoology
Lines: 19

Shutdown(1) and /etc/rc have been modified to cooperate in shortening
the reboot sequence after a clean shutdown.  Shutdown(1) tries to
unmount the file systems; if it succeeds, it creates /clean.shutdown .
/etc/rc looks for /clean.shutdown; if it's there, /etc/rc bypasses most
of the filesystem checks.  The result is that a reboot after a clean
shutdown takes only a minute or so.

The unmount stuff really ought to be in init(8) or one of its auxiliaries.
Quite apart from considerations of asymmetry, shutdown's unmount attempts
occur before the final kill-everything operation undertaken by init, with
the result that stubborn background processes may prevent unmounts.  In
such a case, the shutdown really is clean but doesn't look that way to
shutdown (and hence to /etc/rc).  The problem is that it's not entirely
trivial to fit init with a shutdown counterpart of /etc/rc, because init's
internal structure isn't right.  I studied this briefly and decided not
to pursue it just now; I'll have another try if problems arise.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry