supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Laurent Bercot <ska-supervision@skarnet.org>
Subject: Re: runit pblms on Mandrake
Date: Thu, 17 Jul 2003 08:25:20 +0200	[thread overview]
Message-ID: <20030717062520.GA24787@skarnet.org> (raw)
In-Reply-To: <20030717140548.2ec1a9e5.hleil@yahoo.com.cn>

> 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


  reply	other threads:[~2003-07-17  6:25 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-17  3:10 Karthik M
2003-07-17  6:00 ` Hleil Liu
2003-07-17  6:05   ` Hleil Liu
2003-07-17  6:25     ` Laurent Bercot [this message]
2003-07-17  8:51       ` Hleil Liu
2003-07-17 12:33         ` Laurent Bercot
2003-07-17 16:30           ` Karthik M
2003-07-17 17:10             ` Lukas Beeler
2003-07-17 22:22               ` Karthik M
2003-07-19  1:43               ` Karthik M
2003-07-19  8:02                 ` Lukas Beeler
2003-07-22 21:31                   ` Karthik M
2003-07-22 21:40                     ` Charlie Brady
2003-07-23 18:30                     ` clemens fischer
2003-07-17 19:30           ` Stefan Karrmann
2003-07-18 10:17       ` Gerrit Pape
2003-07-19 17:25       ` Hleil Liu
2003-07-17 16:26   ` Karthik M
2003-07-18 10:20     ` Gerrit Pape
2003-07-18 16:27       ` Lukas Beeler
2003-07-21 10:01         ` some getties require setsid() (Re: runit pblms on Mandrake) Gerrit Pape
2003-07-21 10:13           ` some getties require setsid() Lukas Beeler
2003-07-23 17:03             ` clemens fischer
2003-07-23 17:23               ` Lukas Beeler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030717062520.GA24787@skarnet.org \
    --to=ska-supervision@skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).