From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1024 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit upgrades and halt rather than reboot Date: Mon, 13 Feb 2006 21:08:31 -0700 Organization: Annvix Message-ID: <20060214040831.GD27964@annvix.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> <20060213144431.8897.qmail@2b7bc139b19c0c.315fe32.mid.smarden.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IMjqdzrDRly81ofr" X-Trace: sea.gmane.org 1139890151 14085 80.91.229.2 (14 Feb 2006 04:09:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 04:09:11 +0000 (UTC) Original-X-From: supervision-return-1260-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Feb 14 05:09:08 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 1F8rUw-0003Hp-Ug for gcsg-supervision@gmane.org; Tue, 14 Feb 2006 05:09:07 +0100 Original-Received: (qmail 11027 invoked by uid 76); 14 Feb 2006 04:09:28 -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 11021 invoked from network); 14 Feb 2006 04:09:27 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060213144431.8897.qmail@2b7bc139b19c0c.315fe32.mid.smarden.org> X-Mailer: Mutt 1.5.x/OS X 10.4.x X-PGP-Key: http://linsec.ca/vdanen.asc X-URL: http://annvix.org/ User-Agent: Mutt/1.5.10i X-SA-Exim-Connect-IP: 68.149.37.7 X-SA-Exim-Mail-From: vdanen@annvix.org X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on hades.annvix.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-SA-Exim-Version: 4.2 (built Sun, 09 Oct 2005 23:21:52 -0400) X-SA-Exim-Scanned: Yes (on hades.annvix.org) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1024 Archived-At: --IMjqdzrDRly81ofr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Gerrit Pape [2006-02-13 14:44:31 +0000]: > > > > [root@cerberus sbin]# cp init init.org > > > > [root@cerberus sbin]# ls -i init init.org > > > > 6374308 init* 6301334 init.org* > > >=20 > > > Make a hard link instead of a copy: > > > # ln init init.org > >=20 > > Nice that works, thanks. Forgot about hard links. > >=20 > > Anyways, it still doesn't work. Tried a bunch of times and a bunch of > > different things: > >=20 > > 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 > >=20 > > in all cases, this didn't work. >=20 > Try ln /sbin/runit to /sbin/runit.old. YES! That worked perfectly. Tried it in vmware and a few machines and it's absolutely fantastic. Thank you!! > > 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. >=20 > 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. This makes sense to me, now that I understand what runit-init actually does. Absolutely fantastic, Gerrit. Thank you very much both for your assistance and for runit itself. If I ever make any money off Annvix, some of it is most definitely heading your way. =3D) --=20 Annvix - Secure Linux Server: http://annvix.org/ "lynx -source http://linsec.ca/vdanen.asc | gpg --import" {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4} Wasting time like it was free... --IMjqdzrDRly81ofr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFD8Ve/LrxeMv7jCtQRAiEEAJ430wfTVoBXzprebSSz5CjF1h7cdQCgq1Zm M5tbyHXkkiANyVQaMkJZvig= =7QVy -----END PGP SIGNATURE----- --IMjqdzrDRly81ofr--