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

WaLyong Cho walyong.cho at samsung.com
Tue May 27 08:39:17 PDT 2014


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.

WaLyong Cho (1):
  unit: make unit can start without instance

 src/core/manager.c     | 10 ++++++----
 src/shared/unit-name.c | 12 ++++++++++++
 src/shared/unit-name.h |  1 +
 3 files changed, 19 insertions(+), 4 deletions(-)

-- 
1.9.3



More information about the systemd-devel mailing list