[systemd-devel] List all available units

Colin Guthrie gmane at colin.guthr.ie
Thu Aug 9 07:21:04 PDT 2012


'Twas brillig, and Václav Pavlín at 09/08/12 08:39 did gyre and gimble:
> Lennart Poettering píše v St 08. 08. 2012 v 18:31 +0200:
>> If we present the user with a list like this we probably should show a
>> tree view of some kind since the unit file getty at .service might get
>> instantiated a couple of times as "getty at tty1.service" and so on, and
>> hence is in a tree-like relationship. 
> 
> I like the idea of the tree view, but I cannot imagine how it can help
> to solve autocompletion problem. If I get it right, getty at .service is
> template file, which cannot be manually instantiated, so it can be
> omitted from the output (User cannot do anything with it, right?).

A user can actually type "systemctl enable getty at .service" as it has the
following:

[Install]
Alias=getty.target.wants/getty at tty1.service

Thus "enabling" the template unit will actually configure an
instantiation of it.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list