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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Jun 24 14:22:22 PDT 2014


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

Zbyszek


More information about the systemd-devel mailing list