[systemd-devel] How to compute a value for a service argument or environment value?
Lennart Poettering
lennart at poettering.net
Mon Mar 24 16:22:06 PDT 2014
On Wed, 19.03.14 16:00, Umut Tezduyar (umut at tezduyar.com) wrote:
>
> Hi Alan,
>
> As Cristian has suggested, the correct behavior is letting daemons
> pick up the right argument.
>
> Though, there is a hack if you can't re implement the daemon. You
> could compute the variables in an ExecStartPre= and write them to a
> file (/run/yourservice/arg) and point your
> EnvironmentFile=/run/yourservice/arg. Hope it helps.
Well, if you have to invoke a shell, then the wrapper script thing
sounds like the better option, I think, since it doesn't require
temporary files in the fs...
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list