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

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


On Wed, Jun 25, 2014 at 02:29:20PM +0900, WaLyong Cho wrote:
> 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. ;)
Good point, removed.

Zbyszek


More information about the systemd-devel mailing list