From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/540 Path: main.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: /etc/runit/3 not executing correctly... Date: Tue, 27 Jul 2004 14:42:59 -0400 (EDT) Message-ID: References: <200407272026.35312.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 1090953803 2326 80.91.224.253 (27 Jul 2004 18:43:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 18:43:23 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-778-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jul 27 20:43:10 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 1BpWus-0003nJ-00 for ; Tue, 27 Jul 2004 20:43:10 +0200 Original-Received: (qmail 13711 invoked by uid 76); 27 Jul 2004 18:43:31 -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 13705 invoked from network); 27 Jul 2004 18:43:31 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: John Nielsen In-Reply-To: <200407272026.35312.knoglen@tele2.fr> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:540 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:540 On Tue, 27 Jul 2004, John Nielsen wrote: > > 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. So don't use util-linux's shutdown :-) > > 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! /etc/runit/stopit, /etc/runit/reboot and /etc/runit/3 should do all. > 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'd guess that is because getty is responding correctly to the TERM signal, but whatever you replace getty with (login, or a successor) does not. > 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? Yes and no. All you can do is give the session leader a HUP or TERM signal. You want it to respond appropriately to that signal, and tidy everything up and then exit. But it could just ignore the signal, in which case you need a bigger hammer (e.g. a QUIT signal, or -9). > Im talking about something along the lines of what sysvinit does. Im guessing > something you would put in the /etc/runit/getty-*/finish script. Those scripts won't necessarily be run when you want them to. Charlie