On Sun, 16.08.15 16:36, Malte Forkel (malte.for...@berlin.de) wrote:
Hi,
Is there some kind of option substitution in unit configuration
files?
Unit files are supposed to be simply configuration files, not a macro
language. That said there is:
1) Specifier expansion in a number of
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
On Sun, Aug 16, 2015 at 5:36 PM, Malte Forkel malte.for...@berlin.de
wrote:
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
Thanks to both of you!
I'd always encourage
you to fix the daemon in question to make something like the above
unnecessary.
True. Since I'm only packaging the daemon, I can just guess its written
as it is to make sure the daemon can remove the