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

Steve Dickson SteveD at redhat.com
Sat Jan 23 06:48:09 PST 2016


Thank for the discussion... It was very helpful! 

steved. 

On 01/13/2016 10:51 AM, Steve Dickson wrote:
> 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.
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> 


More information about the systemd-devel mailing list