From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/537 Path: main.gmane.org!not-for-mail From: John Nielsen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: /etc/runit/3 not executing correctly... Date: Tue, 27 Jul 2004 18:23:25 +0200 Message-ID: <200407271823.25092.knoglen@tele2.fr> References: <200407261810.13156.knoglen@tele2.fr> <200407262006.49135.knoglen@tele2.fr> <20040727104400.7150.qmail@ebc4b750716d9e.315fe32.mid.smarden.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090945386 12387 80.91.224.253 (27 Jul 2004 16:23:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 16:23:06 +0000 (UTC) Original-X-From: supervision-return-775-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jul 27 18:22:54 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 1BpUj8-0000Lh-00 for ; Tue, 27 Jul 2004 18:22:54 +0200 Original-Received: (qmail 11717 invoked by uid 76); 27 Jul 2004 16:23:12 -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 11711 invoked from network); 27 Jul 2004 16:23:12 -0000 X-T2-Posting-ID: XVyhlaLmORYmA+UmLIX/2mWnGm/y6HUcgqmE6/b6m9s= Original-To: supervision@list.skarnet.org User-Agent: KMail/1.6.2 In-Reply-To: <20040727104400.7150.qmail@ebc4b750716d9e.315fe32.mid.smarden.org> Content-Disposition: inline Xref: main.gmane.org gmane.comp.sysutils.supervision.general:537 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:537 On Tuesday 27 July 2004 12:43, Gerrit Pape wrote: > 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? Yes, I posted all of the script. I had cut it down as much as possible to troubleshoot. I really dont know where that message somes from then? That textstring "Unmounting any remaining filesystems" doesnt exist in any of the existing boot scripts. I just doublechecked, and it isnt there. Where else could it come from? The kernel itself? > > > 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? Success!!! Why can i see it from an inactive console and not from a logged in console? How could that be blocked? When i shut down like this, all of the "echo * >> /test" lines i put into the 3 script are updating the /test file correctly, meaning the script finishes this time. Does this tell you 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? It is a linux distro build from scratch. We have removed the sysvinit package completely, so the halt and shutdown commands are taken from the util-linux package instead. Might there be issues with this? Regards, John