From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1016 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit upgrades and halt rather than reboot Date: Mon, 13 Feb 2006 14:44:31 +0000 Message-ID: <20060213144431.8897.qmail@2b7bc139b19c0c.315fe32.mid.smarden.org> References: <20060202042050.GI17576@annvix.org> <20060203154031.9374.qmail@6824f200d7859c.315fe32.mid.smarden.org> <20060203164529.GK17576@annvix.org> <20060203165552.17710.qmail@238ebfa254faf9.315fe32.mid.smarden.org> <20060211190328.GK1391@annvix.org> <20060211194445.GL1391@annvix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139841855 2406 80.91.229.2 (13 Feb 2006 14:44:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2006 14:44:15 +0000 (UTC) Original-X-From: supervision-return-1252-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Feb 13 15:44:15 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1F8ew1-0004PD-2B for gcsg-supervision@gmane.org; Mon, 13 Feb 2006 15:44:13 +0100 Original-Received: (qmail 2871 invoked by uid 76); 13 Feb 2006 14:44:33 -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 2866 invoked from network); 13 Feb 2006 14:44:32 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060211194445.GL1391@annvix.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1016 Archived-At: On Sat, Feb 11, 2006 at 12:44:45PM -0700, Vincent Danen wrote: > * Paul Jarc [2006-02-11 14:11:21 -0500]: > > > Vincent Danen wrote: > > > [root@cerberus sbin]# cp init init.org > > > [root@cerberus sbin]# ls -i init init.org > > > 6374308 init* 6301334 init.org* > > > > Make a hard link instead of a copy: > > # ln init init.org > > Nice that works, thanks. Forgot about hard links. > > Anyways, it still doesn't work. Tried a bunch of times and a bunch of > different things: > > 1) cp /sbin/init to /sbin/init.old before upgrade; use reboot > 2) cp /sbin/init to /sbin/init.old before upgrade; use init.old 6 > 3) ln /sbin/init to /sbin/init.old before upgrade; use reboot > 4) ln /sbin/init to /sbin/init.old before upgrade; use init.old 6 > > in all cases, this didn't work. Try ln /sbin/runit to /sbin/runit.old. > I was also mistaken in an earlier post... I do not move runit to init, > but rather runit-init to init (runit stays as is). So thinking that > might have something to do with it, I moved runit to init and then it > just plain old wouldn't let me do anything (fatal: needs to be process 1 > or something similar); got that from running "runit 6", "init 6", and > "reboot". So I think I need to have runit-init remain as init and have > it exec runit. Yes, runit-init must be /sbin/init. It's that /sbin/init on unix is not only used as process 1, but also as command line interface while the system is up (e.g. 'init 0', 'init 6'). With runit, the process no 1 duties are implemented in the runit program, and the cli in runit-init. runit-init is installed as /sbin/init, and if it sees itself started with pid 1, it immediately replaces itself with /sbin/runit, the process no 1 implementation. If it's not running as pid 1, it's the command line interface to signal the (currently as process no 1 running) runit process. Regards, Gerrit.