On Wed, Sep 8, 2010 at 8:53 AM, Reno Reckling <e-syst...@wthack.de> wrote: > Am 08.09.2010 05:04, schrieb Michael Biebl: >> Without knowing too much about Gentoo and simply looking at what the >> Gentoo handbook has to say about Gentoo init scripts [1], >> why don't you simply provide an /sbin/runscript implementation which >> works with systemd? > > I have already done some research on that matter. > This script parses the depend function of the init scripts an put them out in > an easy parseable format: > http://dump.wthack.de/checkdep.sh > simply call it with like: > ./checkdep.sh /etc/init.d/nfsmount > and you can parse alle depends,needs and stuff. > The second one i was working on was a working wrapper for runscript to bypass > runscript and just provide the "start" "stop" etc. functions. > This resulted in: > http://dump.wthack.de/runscript.sh > You can use it like this: > ./runscript.sh /etc/init.d/nfsmount start > This worked for me on all init.d files, but i am of course open for > suggestions.
Since you're doing this approach that would require an extra step, why not aim at a more powerful script that converts them to systemd units? Many of scripts these days use start-stop-daemon and we could generate matching units without much hassle. Anyway, your runscript.sh will be useful if we aim at having systemd as an official gentoo alternative. BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel