[systemd-devel] [PATCH] units: Make getty at .service install rule generic.
Thomas Bächler
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
> 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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130213/8a5515b3/attachment-0001.pgp>
More information about the systemd-devel
mailing list