Re: systemd2init PoC
On Fri, Feb 14, 2014, at 13:33, John Paul Adrian Glaubitz wrote:
> On 02/14/2014 12:01 PM, Ondřej Surý wrote:
> > I have hacked together a PoC systemd2init shell script on top of
> > augeas-tools (you need at least jessie version) to autogenerate sysv-rc
> > script out of simple service file.
> Cool! Thanks for hacking this together. I'd guess this could be
> very helpful during the transition.
My point is that's it's not that hard to write and the dh-systemd would
benefit from such helper command. And if there's somebody willing to
rewrite it into perl dh_systemd_sysvinit command I would be happy to
help to finish it/debug it on my packages. The problem is that I touch
perl just in case of emergency and only in full hazmat suit, so somebody
would need to write the basis and I would be able to tweak it around.
> There has been a similar project during a Debian GSoC project, have
> you looked into that as well?
> > https://github.com/akhilvij/systemd-to-sysvinit-converter
Didn't know about that and it looks a tad bit more complete, but as I
said we need to make this command available in an easy way to the
My original idea was to write a simple drop-in shell script that would
be able to parse the .service file on runtime. That's still possible
with augtool, but you want be able to generate insserv headers on the
fly. I guess that's not a problem since most packages would be quite
happy with $syslog $remote_fs, but Provides: and Short-Description:
fields would be just wrong.
Ondřej Surý <email@example.com>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server