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

Steve Dickson SteveD at redhat.com
Wed Jan 13 07:51:01 PST 2016


Hello,

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?

steved.


More information about the systemd-devel mailing list