From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1026 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: copy runit-init to /sbin/init or not Date: Tue, 14 Feb 2006 07:42:51 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20060214054251.GH6585@home.power> 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> <20060214040831.GD27964@annvix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139895784 4017 80.91.229.2 (14 Feb 2006 05:43:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 05:43:04 +0000 (UTC) Original-X-From: supervision-return-1262-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Feb 14 06:43:02 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 1F8sxf-0005Pi-O0 for gcsg-supervision@gmane.org; Tue, 14 Feb 2006 06:42:52 +0100 Original-Received: (qmail 11900 invoked by uid 76); 14 Feb 2006 05:43:13 -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 11894 invoked from network); 14 Feb 2006 05:43:13 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060214040831.GD27964@annvix.org> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1026 Archived-At: Hi! > * Gerrit Pape [2006-02-13 14:44:31 +0000]: > > 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. Do you aware of any software which run 'init [0|6]' or 'halt' or 'reboot'? For now I've seen these commands executed only manually by root and by acpid daemon. I've problems with installing runit-init as /sbin/init on my Gentoo - this is because from time to time while upgrading overall system 'sysvinit' package become upgraded and it replace /sbin/init. If I forget to replace it by runit-init manually again, I got surprise on next reboot. :-( Currently I work around this issue this way: - /sbin/{init,halt,reboot} is sysvinit's - kernel boot with param init=/sbin/runit-init - there aliases configured in /root/.bashrc: alias reboot='/sbin/runit-init 6' alias halt='/sbin/runit-init 0' (I usually use reboot|halt, not init 0|6, but alias for init also can be added if needed) - acpid configured to run '/sbin/runit-init 0' in it /etc/acpi/default.sh -- WBR, Alex.