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?

Cheers,

Thomas


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52fe2a10.3080...@debian.org

Reply via email to