Johannes Ernst wrote on 05/10/15 23:53:
>> On Oct 5, 2015, at 14:29, David Timothy Strauss
>> < <>> wrote:
>> If you only want one instance running, why not just create one service
>> and reconfigure/restart it?
> Because the service dependencies are totally different.

If the service dependencies are totally different, why are you using a
templated unit? Surely templated units have to have the same dependences.

Basically in your unit, you are presumably using %i or %I in it in some

What David suggested was using a
/etc/systemd/system/foo.service.d/config.conf dropin file to add a
"Environment=MYVAR=newval" line and use $MYVAR in your unit rather than
%i or %I.

This is the same approach but you configure your unit appropriately
rather than using instances.

If you post your unit or provide more details of the kind of thing you
are actually wanting to achieve (rather than the solution you want) then
people may be able to offer other suggestions.




Colin Guthrie

Day Job:
  Tribalogic Limited
Open Source:
  Mageia Contributor
  PulseAudio Hacker
  Trac Hacker
systemd-devel mailing list

Reply via email to