[systemd-devel] Option substitution in unit configuration files?

Malte Forkel malte.forkel at berlin.de
Sun Aug 16 07:36:21 PDT 2015


Hi,

Is there some kind of option substitution in unit configuration files?

In a service configuration file, I specify the PID file and would like
to re-use its name, e.g.
    PIDFile=/var/run/myservice.pid
    ExecStartPre=/usr/bin/touch %PIDFile ; /bin/chown myuser %PIDFile

Thanks,
Malte



More information about the systemd-devel mailing list