public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646)
@ 2009-06-07 19:59 Robin H. Johnson
  2009-06-07 20:10 ` Samuli Suominen
                   ` (4 more replies)
  0 siblings, 5 replies; 40+ messages in thread
From: Robin H. Johnson @ 2009-06-07 19:59 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]

Hi folks,

This is a summary of how to detect Baselayout-2/OpenRC from within
init.d scripts. We raised it in January, without any actual final
agreement:
http://archives.gentoo.org/gentoo-dev/msg_5959bcfaf3ba566c551823039643f5c5.xml

Also, there were some items that weren't raised in the previous
discussion:
- The Vserver team needs the actual version of OpenRC, AND it must be
  available without any exec()/fork()/clone() calls.
- init.d/sysfs might be removed on some embedded systems.

The final solution that everybody agreed on is as follows.
1. OpenRC will provide /libexec/rc/version, a text file containing the
   version (possible including a git ID) of the release.
2. Right now, every init.d script that needs to detection should revbump
   and change to the following:
   [[ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /libexec/rc/version ]]
   This allows a safe migration.
3. Approximately 6 months after OpenRC and Baselayout2 go stable, the
   detection will drop to:
   [[ -f /libexec/rc/version ]]
4. For vserver and anybody else that needs the version details of
   OpenRC, you get to read the file, and RDEPEND on the minimal package
   version you want.

GDP team:
(I didn't hear from you in the bug)
Could you please update:
- handbook section "Writing Init scripts"
- OpenRC migration guide

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2009-06-12 22:44 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-07 19:59 [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Robin H. Johnson
2009-06-07 20:10 ` Samuli Suominen
2009-06-07 20:45   ` Josh Saddler
2009-06-07 21:31     ` Roy Marples
2009-06-07 22:33     ` Robin H. Johnson
2009-06-07 23:30       ` Josh Saddler
2009-06-07 22:02 ` Ulrich Mueller
2009-06-07 22:17   ` Robin H. Johnson
2009-06-07 23:00     ` Roy Marples
2009-06-08  0:11       ` Robin H. Johnson
2009-06-08  6:27         ` Ulrich Mueller
2009-06-08 10:00         ` Roy Marples
2009-06-08 10:22           ` Mike Frysinger
2009-06-08  7:45 ` Mike Frysinger
2009-06-08 10:12   ` Roy Marples
2009-06-08 10:19     ` Mike Frysinger
2009-06-08 10:35       ` Roy Marples
2009-06-08 10:38         ` Mike Frysinger
2009-06-08 11:03           ` Roy Marples
2009-06-08 11:27             ` Mike Frysinger
2009-06-08 12:58               ` Roy Marples
2009-06-08 23:23               ` Robin H. Johnson
2009-06-08 23:42                 ` Mike Frysinger
2009-06-09  0:44                   ` Robin H. Johnson
2009-06-09  0:54                     ` Mike Frysinger
2009-06-12 10:53                       ` Peter Volkov
2009-06-12 22:43                         ` Peter Volkov
2009-06-08 10:39       ` Joe Peterson
2009-06-08 10:45         ` Mike Frysinger
2009-06-08 10:54           ` Joe Peterson
2009-06-08 10:52         ` Roy Marples
2009-06-08 12:16 ` Mike Frysinger
2009-06-08 13:01   ` Roy Marples
2009-06-08 13:08     ` Mike Frysinger
2009-06-08 13:09       ` Roy Marples
2009-06-08 13:41         ` Mike Frysinger
2009-06-08 14:00           ` Roy Marples
2009-06-08 14:27             ` Mike Frysinger
2009-06-12 13:20               ` [gentoo-dev] Re: Baselayout2/OpenRC init.d Steven J Long
2009-06-12 18:34 ` [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox