From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OB4ML-0005fm-Ih for garchives@archives.gentoo.org; Sun, 09 May 2010 11:07:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAFE2E074E; Sun, 9 May 2010 11:07:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 50811E0459 for ; Sun, 9 May 2010 11:07:27 +0000 (UTC) Received: from [82.130.46.232] (qoc0.kyla.fi [82.130.46.232]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 885301B402F for ; Sun, 9 May 2010 11:07:26 +0000 (UTC) Message-ID: <4BE69780.3000207@gentoo.org> Date: Sun, 09 May 2010 14:07:44 +0300 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; fi; rv:1.8.1.23) Gecko/20090916 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rc-update interface References: <4BE68CFF.3080608@basementcode.com> In-Reply-To: <4BE68CFF.3080608@basementcode.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=B8E4ECF0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDF26752A19A4C7068ADE3B21" X-Archives-Salt: 9458311d-0e35-4951-945d-8a0a9c39ea45 X-Archives-Hash: 40827ea1d44f8d2a67a89d936b827bcf This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDF26752A19A4C7068ADE3B21 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. >=20 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 --------------enigDF26752A19A4C7068ADE3B21 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJL5peGAAoJEPeUsk245Ozw6tcP/2l1EWXfUHMfaFcVBT9v0XoS Z2zzxZ3SsFxYgLj5fqBbVFU1Hbdb1zNtfGotYvsGSErNPTvBfYwCeF+etqMj6UAf zmGb+HHOykC8ML98KdwfJ5iRZ06m+FSzLfH6e2XUJXkl/qNHmkgj9ZVSOIazAR09 f5CE2lFnz+sef9vhqFHJgaZ06mNM+q+Y3zOKS6iXFctUcoAiwUfyuN54khP5QbNG ACuQz+4sQWC6A7Qf2dyFJEkZEidf1sFdaVrMchymxldyJHo4b40qwizLhn50IeFZ aK52yyDwch2LvNX7V/lwoqZT+//mRDDfk39rw3EQckcu7P1wJ3IudCaC5RBqR9o7 gag5pMZtO5i7KZzZeXywFTaObT1kGAinUMjvHdN50P8wYmzS4oJuYlIzO+AD/1WS Q3H4zHRgDV0emUugdfb2z0UiphS5i3tY/aqAEMACw9WZUXQFlRozdITgnWCYah0r IkPToJtvF6daYJmLW9Ulj7vJjyNIeUKcFa1ErAOwq0VfMcevqEHZCYU10J5CNAPv SI+HluyDs9ygn7m2SOpwHLz+1W1+y8no/HRMdbibr1bsTyCLytnG523Wtum7oxk0 nNrvYPDOlFbeOFj6w+lpbwPSzPydiC0iDJhhLxbaz3XOXBRDxAxDThnJCuGkzyC7 y+MxsPQkbYSUeZDoVSYp =/j8C -----END PGP SIGNATURE----- --------------enigDF26752A19A4C7068ADE3B21--