[systemd-devel] gentoo openrc

James Cloos cloos at jhcloos.com
Mon Aug 9 17:57:35 PDT 2010


>>>>> "RR" == Reno Reckling <e-systemd at wthack.de> writes:

RR> I am currently working on a way to extract the dependencies from
RR> openrc init scripts to be able to support the automatic init.d
RR> fallbacks in gentoo.

RR> The extracting and bash scripting part was fairly easy as it mainly
RR> includes a 100 lines bash script to parse the init script.

IIRC, one of the points of the openrc work -- as posted to the lists --
was to eliminate the need for bash(1) during init.

You should be able to parse the depend() functions w/o using a shell.

The runscript(8) src might provide useful clues.

At worst one could integrate code from something like dash(1) to parse
the scripts and build up the depend graph.

(Writing from memory of discussions promoting openrc over baselayout-1,
I haven't looked at the openrc code in a *long* time....)

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the systemd-devel mailing list