Tool to parse systemd unit files

Joost van Baal-Ilić joostvb-debian-init-diversity at
Wed Sep 25 07:19:40 BST 2019


On Mon, Sep 23, 2019 at 09:59:01PM -0300, Jesse Smith wrote:
> wrote a crude library which parses systemd unit files to
> find the key bits of information (dependency information, commands to
> run when starting/stopping services) and put together a little demo program.

Slightly related; might come in handy here: I still really like the idea behind
Petter Reinholdtsen's init-d-script, as shipped with sysvinit's sysvinit-utils
since 2013.  It's an interpreter for short and simple init.d scripts, aiming to
reduce redundant code in /etc/init.d/.  See
for an instructive example; its manpage is online at .

HTH, Bye,


You'll be given lots of chores, and no authority.   The reward for a job well
done will generally just be another, probably harder, job. If you don't think
you can cope with this, don't apply.       --aj, 2003, asking for volunteers,

More information about the Debian-init-diversity mailing list