Hi guys,
was reading a tutorial from archwiki on systemd...
Then read this:
"Note: Some unit names contain an @ sign (e.g.
name@string.service): this means that they are instances of a template unit, whose actual file name does not contain the string part (e.g. name@.service). string is called the instance identifier, and is similar to an argument that is passed to the template unit when called with the systemctl command: in the unit file it will substitute the %i specifier.
To be more accurate, before trying to instantiate the name@.suffix template unit, systemd will actually look for a unit with the exact
name@string.suffix file name, although by convention such a "clash" happens rarely, i.e. most unit files containing an @ sign are meant to be templates. Also, if a template unit is called without an instance identifier, it will just fail, since the %i specifier cannot be substituted.
I just dont understand the practical application of this...
can anybody help me clear this up...?