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.
-- 
Ondřej Surý <ond...@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


--
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/1392375667.28811.83357633.4068c...@webmail.messagingengine.com

Reply via email to