From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/534 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: /etc/runit/3 not executing correctly... Date: Tue, 27 Jul 2004 10:43:57 +0000 Message-ID: <20040727104400.7150.qmail@ebc4b750716d9e.315fe32.mid.smarden.org> References: <200407261810.13156.knoglen@tele2.fr> <20040726161853.GA3171@skarnet.org> <200407262006.49135.knoglen@tele2.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090925031 24500 80.91.224.253 (27 Jul 2004 10:43:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 10:43:51 +0000 (UTC) Original-X-From: supervision-return-772-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jul 27 12:43:42 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BpPQs-0007yc-00 for ; Tue, 27 Jul 2004 12:43:42 +0200 Original-Received: (qmail 9261 invoked by uid 76); 27 Jul 2004 10:44:02 -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 9256 invoked from network); 27 Jul 2004 10:44:02 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <200407262006.49135.knoglen@tele2.fr> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:534 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:534 On Mon, Jul 26, 2004 at 08:06:49PM +0200, John Nielsen wrote: > On Monday 26 July 2004 18:18, Laurent Bercot wrote: > > > With this script the last number being printet is "6". After that, it > > > just gives me the normal "Unmounting any remaining file systems. Now you > > > can turn off the power", so it exits somewhere while executing the first > > > svwaitdown command. > > > > If you can boot your system again without an fsck, it means that the > > other services have stopped properly - so your script finished correctly. > > I guess that it does finish, but the "echo" commands don't print anything > > on the screen because of some weird VC deallocation thing happening when > > the gettys die. > > I use reiserfs, so fsck wouldnt run anyway. :-) But it doesnt replay the log > when mounting which means it umounted properly. The last message i get from > runit (not from the script) is "unmounting any remaining filesystems", so > that would explain the clean mount. That message is not from runit, did you post your complete stage 3 script, or only a top part of it? > Allso, I tried to pipe all of the echo lines out to a file instead to see if > it was just a strange screen problem, but the output still stopped at 6, so > the execution of the scripts stops at the first svwaitdown line, but runit > itself doesnt stop the shutdown. Hmm. If you have a getty service running on console 1, I suggest to disable this service, login on console 2, run `init 6`, then immediately logout from console 2, and switch to console 1. Does this change anything? If not, I would do the following: login on console 2 only, no other login. Take down all services but the getty-2 service manually, and make sure they're down. Then reboot by running `init 6`, logout from console 2 and switch to console 1. BTW, what operating system are you using? HTH, Gerrit.