From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/532 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: Mon, 26 Jul 2004 20:06:49 +0200 Message-ID: <200407262006.49135.knoglen@tele2.fr> References: <200407261810.13156.knoglen@tele2.fr> <20040726161853.GA3171@skarnet.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 1090865192 26749 80.91.224.253 (26 Jul 2004 18:06:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2004 18:06:32 +0000 (UTC) Original-X-From: supervision-return-770-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jul 26 20:06:05 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 1Bp9rR-0001oC-00 for ; Mon, 26 Jul 2004 20:06:05 +0200 Original-Received: (qmail 4162 invoked by uid 76); 26 Jul 2004 18:06:25 -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 4156 invoked from network); 26 Jul 2004 18:06:25 -0000 X-T2-Posting-ID: 21VuvZ4U3/c613HI43WgqQ== Original-To: supervision@list.skarnet.org User-Agent: KMail/1.6.2 In-Reply-To: <20040726161853.GA3171@skarnet.org> Content-Disposition: inline Xref: main.gmane.org gmane.comp.sysutils.supervision.general:532 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:532 On Monday 26 July 2004 18:18, Laurent Bercot wrote: > Just a silly idea : > > echo 'Waiting for getties to stop...' > > echo 6 > > svwaitdown -xk -t10 /var/service/getty-* > > What if you insert "exec > /dev/console 2>/dev/console" here ? Sorry, that didnt change anything. > > 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. 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. Regards, John