'Twas brillig, and Markus Rathgeb at 09/03/13 08:20 did gyre and gimble:
> Hi!
>
> I am using a NAS and want to create .mount and .automount service files
> for the shared.
> The service files differs only by the name of the share and mount target.
>
> So I thought I use a "@" template for that.
It is also not working with systemd-198.
The symlink is correctly set, if I using a "small" i (%i) with version 198.
Alias=mnt-NAS-%i.automount
# systemctl enable [email protected]
ln -s '/etc/systemd/system/[email protected]'
'/etc/systemd/system/mnt-NAS-games.automount'
But that's all.
> To achieve this:
> "Mount units must be named after the mount point directories they control."
> Our is there a better way?
Hm. Really. Anyway, looks like it's fixed/works in latest release:
systemctl enable [email protected]
ln -s '/etc/systemd/system/[email protected]'
'/etc/systemd/sys
> I am using a NAS and want to create .mount and .automount service files for
> the
> shared.
> The service files differs only by the name of the share and mount target.
It's certainly bug, but why to use Alias for that purpose?
___
systemd-devel mailin
Hi!
I am using a NAS and want to create .mount and .automount service files for
the shared.
The service files differs only by the name of the share and mount target.
So I thought I use a "@" template for that.
I created a file "[email protected]" (same for .mount with different
content, but the