Re: [systemd-devel] Specifier support for Alias

2013-03-10 Thread Colin Guthrie
'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.

Re: [systemd-devel] Specifier support for Alias

2013-03-09 Thread Markus Rathgeb
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.

Re: [systemd-devel] Specifier support for Alias

2013-03-09 Thread Oleksii Shevchuk
> 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

Re: [systemd-devel] Specifier support for Alias

2013-03-09 Thread Oleksii Shevchuk
> 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

[systemd-devel] Specifier support for Alias

2013-03-09 Thread Markus Rathgeb
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