Re: non-existent unit instances

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/09/2020 13:18, Kevin P. Fleming wrote:
> It's a general issue with templated unit files; I've had this happen
> as well, and could not figure out why the service had failed to start.
> It was because I had mistyped the instance name. As best I can tell
> systemd doesn't have any mechanism to restrict the instance names
> which can be used for a specific unit file, so it can't know that the
> requested instance cannot be started.

The point of templated units is to allow arbitrary string as template
replacement. If you need to restrict the template expansion, by
definition you can enumerate the possible template expansion, and thus
you can generate the unit files with a script or with a generator.

Cheers,
Dan

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux