public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] rc-update interface
@ 2010-05-09 10:22 Christopher Harvey
  2010-05-09 11:07 ` Petteri Räty
  2010-05-09 18:21 ` Mike Frysinger
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Harvey @ 2010-05-09 10:22 UTC (permalink / raw
  To: gentoo-dev

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.

-- 
My GnuPGP key at:
www.basementcode.com/public_key.txt



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

* Re: [gentoo-dev] rc-update interface
  2010-05-09 10:22 [gentoo-dev] rc-update interface Christopher Harvey
@ 2010-05-09 11:07 ` Petteri Räty
  2010-05-09 18:21 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Petteri Räty @ 2010-05-09 11:07 UTC (permalink / raw
  To: gentoo-dev

[-- 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 --]

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

* Re: [gentoo-dev] rc-update interface
  2010-05-09 10:22 [gentoo-dev] rc-update interface Christopher Harvey
  2010-05-09 11:07 ` Petteri Räty
@ 2010-05-09 18:21 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-05-09 18:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Christopher Harvey

[-- Attachment #1: Type: Text/Plain, Size: 469 bytes --]

On Sunday 09 May 2010 06:22:55 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.

there is no library or hooks for things.  openrc's output can be made terse 
for parsing, but if you need something more, file a bug report describing your 
needs and goals.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2010-05-09 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-09 10:22 [gentoo-dev] rc-update interface Christopher Harvey
2010-05-09 11:07 ` Petteri Räty
2010-05-09 18:21 ` Mike Frysinger

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