[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd2init PoC

On 02/14/2014 07:01 PM, Ondřej Surý wrote:
> Hey all,
> 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.
> It can handle:
> Environment
> EnvironmentFile
> ExecStart
> ExecReload
> PidFile
> Description
> Right now you need to put the service file to:
> debian/lib/systemd/system/<name>.service
> and run
> systemd2init.sh <name>
> and it should generate
> debian/<name>.init.dh
> It's really a proof of concept, but since we have libconfig-augeas-perl
> available in the archive, I guess it can be rewritten into
> dh_systemd_init with little effort (if you don't hate perl) and included
> in dh-systemd package.
> The git repository is located at
> ssh://git.debian.org/git/collab-maint/systemd2init.git, feel free to
> update, rewrite, etc.
> O.

That's cool. I certainly will have a look into it.

What about exploring Ian Jackson's idea, which was to hack a debhelper
that would generate things for multiple init systems?



Reply to: