On Mon, Jul 15, 2013 at 12:10 PM, Arto Jantunen <vi...@debian.org> wrote:

> Ondřej Surý <ond...@sury.org> writes:
> > Just a quick idea:
> >
> > Can we (the mysterious somebody) write a drop-in simple dummy init.d
> script
> > which would take a(ny) systemd service file and run the daemon on
> > non-Linux-kernel systems?
>
> This has been discussed several times, there was even a GSoC project to
> implement a systemd service -> init script converter (essentially
> providing the same thing). Sadly this isn't even nearly as simple as it
> sounds. The systemd service files are simple to write exactly since the
> magic has been moved from them into the daemon, this converter or
> wrapper needs to implement all of that for this to work.
>

I think this task is majestic only if you setup a goal of supporting every
stanzas in systemd files.

But If I look at .service files in my packages, I need to have support only
for:

ExecStartPre, ExecStart, PidFile and Reload

The insserv headers might be written by hand.

O.
-- 
Ondřej Surý <ond...@sury.org>

Reply via email to