>>>>> "RR" == Reno Reckling <e-syst...@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 <cl...@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to