public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rc-update interface
Date: Sun, 09 May 2010 14:07:44 +0300	[thread overview]
Message-ID: <4BE69780.3000207@gentoo.org> (raw)
In-Reply-To: <4BE68CFF.3080608@basementcode.com>

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

On 05/09/2010 01:22 PM, Christopher Harvey wrote:
> I ran cat /sbin/rc-update and the script is copyright gentoo foundation,
> so I'm asking here if there is a programmatic interface to the script.
> I'd rather avoid parsing ascii to try to interpret the rc-update state.
> (This is for work on ventoo for gsoc)
> Thanks.
> 

Take a look at what openrc offers. In general when developing things you
should be looking at the status in ~arch instead of stable. In operc
rc-update is binary:

$ file /sbin/rc-update
/sbin/rc-update: symbolic link to `rc'

$ file /sbin/rc
/sbin/rc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

  reply	other threads:[~2010-05-09 11:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-09 10:22 [gentoo-dev] rc-update interface Christopher Harvey
2010-05-09 11:07 ` Petteri Räty [this message]
2010-05-09 18:21 ` Mike Frysinger

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=4BE69780.3000207@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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