Am 13.02.2013 10:29, schrieb Colin Guthrie:
>> Hmm, but what happens then if people do run
>>
>> systemctl enable getty@.service?

In my eyes, doing this always seemed wrong, I wouldn't mind if it
returned an error.

>> We really need to get the story right on this, I guess, so that
>> something useful happens in both cases?
> 
> The same could be said of any templated unit with a WantedBy= section I
> guess.
> 
> One idea off the top of my head is to have a NoInstanceAlias= directive,
> but adding a new verb here seems fugly.

I actually like the idea of adding a DefaultInstace= option to the
install section. Instead of fiddling with aliases manually, it could
look like this:

[Install]
WantedBy=getty.target
DefaultInstance=tty1

Instead of going to [Install], this could even go to [Unit] and affect
start/stop, not just enable.

> Perhaps we could abuse the - syntax?
> 
> e.g.:
> Alias=-getty.target.wants/getty@tty1.service
> WantedBy=getty.target

Manually writing an alias here seems redundant - you shouldn't have to
write an alias when what you do is pretty much standard.


Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to