I'm familiar with creating ordinary systemd services. However, when learning how to configure wireguard, I came across the '@' symbol in service names and was wondering exactly how it works.
For example, in wireguard, you can configure a connection in /etc/wireguard/wg0.conf
and then control that connection as if it had it's own service file by running sudo systemctl [enable|disable|start|stop|whatever] wg-quick@wg0.service
. If you create a second config file called wg1.conf
, you can control it via the wg-quick@wg1.service
.
this is all very handy, but how does it work? what is it called?
man systemd.unit
, look for "template file" – Panki Nov 27 '22 at 14:02