[systemd-devel] [PATCH] unit: make unit can start without instance

WaLyong Cho walyong.cho at gmail.com
Tue Jun 24 22:29:20 PDT 2014


On 06/25/2014 06:22 AM, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, May 28, 2014 at 12:39:17AM +0900, WaLyong Cho wrote:
>> I'm not sure this could be patch for below TODO.
>>
>> * enabling an instance unit creates a pointless link, and
>>    the unit will be started with getty at getty.service:
>>      $ systemctl enable getty at .service
>>      ln -s '/usr/lib/systemd/system/getty at .service' '/etc/systemd/system/getty.target.wants/getty at .service'
>>
>> If can be, when this can be used?
>> And I couldn't avoid one of strdup in manager_load_unit_prepare(). And
>> I wasn't able to make a suit name better than instanceless.
> For the record, this is obsoleted by
>
> commit d54c4993699f4fa5feece43715aac3564c4dada6
> Author: Lennart Poettering <lennart at poettering.net>
> Date:   Tue Jun 17 00:15:31 2014 +0200
>
>      install: introduce new DefaultInstance= field for [Install] sections
>

Looks more good better than me.
I think the TODO item could be removed. ;)

> Zbyszek
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>


More information about the systemd-devel mailing list