[systemd-devel] Variables in the [Unit] section of a server

Reindl Harald h.reindl at thelounge.net
Wed Jan 13 07:57:42 PST 2016



Am 13.01.2016 um 16:51 schrieb Steve Dickson:
> Is is possible to set a variable in the [Unit]
> section of a service?
>
> For example in rpc-gssd.service there is
>      ConditionPathExists=/etc/krb5.keytab
>
> but for some installation the krb5.keytab
> is in a different place. The rpc.gssd daemon
> can be told this by setting a command line
> argument from the EnvironmentFile.
>
> So people have to edit both the EnvironmentFile
> and the rpc-gssd.service to make this change.
>
> So it would be nice if only the EnvironmentFile
> need to be edit and the change would happen
> in both places.
>
> Possible?

sadly no, i would even have usescases to start ExecStart with var from 
an EnvironmentFile but see the latest discussion about EnvironmentFile 
and you can guess how much support you can expect...

http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/35157

https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg34887.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20160113/1d69fc84/attachment.sig>


More information about the systemd-devel mailing list