From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/539 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 20:26:35 +0200 Message-ID: <200407272026.35312.knoglen@tele2.fr> References: <200407261810.13156.knoglen@tele2.fr> <200407271823.25092.knoglen@tele2.fr> <200407271855.16596.knoglen@tele2.fr> 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 1090952783 32099 80.91.224.253 (27 Jul 2004 18:26:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 18:26:23 +0000 (UTC) Original-X-From: supervision-return-777-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jul 27 20:26:02 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 1BpWeF-0002IG-00 for ; Tue, 27 Jul 2004 20:26:00 +0200 Original-Received: (qmail 13486 invoked by uid 76); 27 Jul 2004 18:26:14 -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 13480 invoked from network); 27 Jul 2004 18:26:13 -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: <200407271855.16596.knoglen@tele2.fr> Content-Disposition: inline Xref: main.gmane.org gmane.comp.sysutils.supervision.general:539 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:539 On Tuesday 27 July 2004 18:55, John Nielsen wrote: > > > 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? > > I found out where the message comes from. It is generated by the util-linux > version of shutdown I am using. Its last action before it halts the > computer is to umount everything that is left. > > I then tried to reinstall the sysvinit version of shutdown and that worked > a lot better. > > So all of this seems to be caused by util-linux shutdown not wanting to > play nice with runit. > > I would really love to be abel to completely dump the sysvinit package. I > guess my case is a special one since I am not using a standart distro. I feel lonely like this, replying to myself all the time. :-) I solved the problem. Instead of trying to make the util-linux versions of the files work, I wrote my own damn files! Actueally they are shell scripts calling init with different paramenters. They appear to work like a charm. I allso got ctrl-alt-del to work as i want. This is definetely starting to look like something. I noticed a strange problem however. Every time i shut down, the getties dies except for the getties that are logged in. I have to start the shutdown script and then log out on that console. I know that I can specify a timeout on svwaitdown that kills the service when the timeout has been reached, only this doesnt seem like a very clean shutdown. Is it possible to shut down the session cleanly without killing it? Im talking about something along the lines of what sysvinit does. Im guessing something you would put in the /etc/runit/getty-*/finish script. Any ideas? Regards, John