wnp@killer.Dallas.TX.US (Wolf Paul) (05/05/89)
Having shut down my machine last night because of a thunderstorm overhead, I noticed again that the /etc/shutdown procedure on my UNIX-PC is about ten times as fast as on any other UNIX system I have ever seen. At the same time, every time I reboot the machine after a shutdown, it fails fsck the first time round. On all other systems I have seen, as a rule, if the system was shut down properly, it would pass fsck the first time; it would fail only if either it was simple powered down or reset without running shutdown, or if there were serious problems with the file system. I suspect that this is caused by the fact that the UNIX-PC /etc/shutdown makes no attempt to kill running processes before syncing the system for the last time, thus the system goes down with open files, etc. Does anybody have a customized /etc/shutdown which cleans up properly, and causes the system to reboot with the filesystem in good condition? Still trying to convert this machine into a real UNIX environment, Wolf -- Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101 UUCP: {texbell, killer, dalsqnt}!dcs!wnp DOMAIN: wnp@killer.dallas.tx.us or wnp%dcs@texbell.swbt.com
sheldon@quest.UUCP (Scott S. Bertilson) (05/09/89)
I'm running 3.5 and 3.51 (2 machines). Both shut down and reboot cleanly. I think the speed of shutdown is due to the fact that there aren't many daemons running and that it isn't V.3 with it's fancier scheme of numerous scripts to start/stop daemon processes. On 3.51, "/etc/profile" contains code to complete the shutdown which includes a "killall" to zap all processes on the system. In addition, I've actually modified my "shutdown" script to create a "/fastboot" which is noticed and removed by "/etc/rc" to bypass the "fsck". I've been running this way for more than a year and a half without problems...running periodic "fsck"s which come up clean. Notice that the file is only created on a clean shutdown...not on a crash. The mod to "/etc/rc" is to change: /etc/fsck -pq to rm /fastboot 2>/dev/null || /etc/fsck -pq The system still claims to be performing a file system check, but doesn't actually do it... -- Scott S. Bertilson ...uunet!rosevax!rose3!quest!sheldon scott@poincare.geom.umn.edu