From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/189 Path: main.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit pblms on Mandrake Date: Thu, 17 Jul 2003 08:25:20 +0200 Message-ID: <20030717062520.GA24787@skarnet.org> References: <20030717031031.30483.qmail@web14402.mail.yahoo.com> <20030717140019.57d767fd.hleil@yahoo.com.cn> <20030717140548.2ec1a9e5.hleil@yahoo.com.cn> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058423043 7058 80.91.224.249 (17 Jul 2003 06:24:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2003 06:24:03 +0000 (UTC) Original-X-From: supervision-return-427-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jul 17 08:24:02 2003 Return-path: Original-Received: from antah.skarnet.org ([212.43.221.114]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19d2BK-0001pE-00 for ; Thu, 17 Jul 2003 08:23:58 +0200 Original-Received: (qmail 25033 invoked by uid 76); 17 Jul 2003 06:25:20 -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 25027 invoked by uid 1000); 17 Jul 2003 06:25:20 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20030717140548.2ec1a9e5.hleil@yahoo.com.cn> User-Agent: Mutt/1.4i Xref: main.gmane.org gmane.comp.sysutils.supervision.general:189 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:189 > cp /package/admin/runit/command/runit-init /sbin/init > > and must copy runit itself into /sbin. > > cp /package/admin/runit/command/runit /sbin/ Why perform those steps at all ? Copying binaries into /sbin creates potential problems: - it breaks the rule of "/[s]bin and /usr/[s]bin belong to the OS and its native package manager" - it duplicates binaries - it is non-standard and non-portable. In other words, by copying binaries into /sbin, you're making your system less clean, more error-prone and more difficult to debug. There are two documented, supported, portable, whatever, ways of accessing the runit binaries: in /command and in /package/admin/runit/command. Isn't that enough ? Using " init=/command/runit-init" within your bootloader will start runit-init as process 1 all right, and you don't have to copy it anywhere. You may have chosen to copy the binaries into /sbin because /package is a link to /usr/local/package, or something of the kind, which is not mounted at boot-time. This is not a good idea. Since the runit package is a basic system package, it should reside entirely within the root filesystem. Don't make /package and /command links to something that is not mounted at boot time, but forests of symlinks pointing to the real location of every package. A tool such as http://www.skarnet.org/software/symtools/update-symlinks.html may help you. -- Ska