Running a systemd-based Gentoo system

Gustavo Sverzut Barbieri barbieri at profusion.mobi
Wed Sep 8 07:02:11 PDT 2010


On Wed, Sep 8, 2010 at 8:53 AM, Reno Reckling <e-systemd at 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: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202


More information about the systemd-devel mailing list