[systemd-devel] [PATCH] units: Make getty at .service install rule generic.
thomas at archlinux.org
Wed Feb 13 02:01:26 PST 2013
Am 13.02.2013 10:29, schrieb Colin Guthrie:
>> Hmm, but what happens then if people do run
>> systemctl enable getty at .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
> 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:
Instead of going to [Install], this could even go to [Unit] and affect
start/stop, not just enable.
> Perhaps we could abuse the - syntax?
> Alias=-getty.target.wants/getty at tty1.service
Manually writing an alias here seems redundant - you shouldn't have to
write an alias when what you do is pretty much standard.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 901 bytes
Desc: OpenPGP digital signature
More information about the systemd-devel