Tool to parse systemd unit files

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


Hi,

On Mon, Sep 23, 2019 at 09:59:01PM -0300, Jesse Smith wrote:
> 
<snip>
> 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
http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html
for an instructive example; its manpage is online at
https://manpages.debian.org/init-d-script .

HTH, Bye,

Joost

-- 
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,
           https://lists.debian.org/20030307181306.GB6621@azure.humbug.org.au




More information about the Debian-init-diversity mailing list