[systemd-devel] known but not-listed units

Mikhail Kasimov mikhail.kasimov at gmail.com
Thu Jan 14 07:27:56 PST 2016


Hello!


As an additional idea -- to separate lists of 'systemctl
list-unit-files' command with subkeys --system, --user and --runtime. By
default 'systemctl list-unit-files' should display all unit-files,
including runtime generated ones.

'systemctl list-unit-files --system': to display unit-files from
/usr/lib/systemd/system dir

'systemctl list-unit-files --user': to display units-files from
/etc/systemd/system dir

'systemctl list-unit-files --runtime':  to display units-files from
/run/systemd/ dir

Acceptable?

14.01.2016 17:01, Lennart Poettering пишет:
> On Wed, 13.01.16 17:26, Stijn De Weirdt (stijn.deweirdt at ugent.be) wrote:
> 
>> hi all,
>>
>> i'm having following situation on a centos 7.2 system (systemd-219-19.el7)
>>
>> there is a sysvinit service called netconsole that is not listed as a
>> unit or unitfile, but the unitfile was generated and systemctl seems to
>> be able to handle the unit.
>>
>> the only odd issue is that this service is not enabled (chkconfig shows
>> all levels as off).
>> this system has otehr sysvinit services that do show up as units (but
>> for those, at least one level is on)
>>
>> is this "normal"? and what sort of units exits that are not listed as
>> units or unitfiles in general?
> 
> We currently do not show runtime generated unit files among the output
> of "systemctl list-unit-files", but it would probably make sense if we
> would. Unit files that are automatically generated for SysV scripts
> are of this kind, and thus not visible in "systemctl list-unit-files".
> 
> Please file a github issue requesting support for listing such
> generated files in "systemctl list-unit-files". 
> 
> Thanks,
> 
> Lennart
> 




More information about the systemd-devel mailing list