LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2021, 05:16 AM   #1
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Rep: Reputation: 19
Unhappy Systemctl Features


Systemd is a bad idea, in my humble opinion.
Systemd is well designed and implemented, but the costs exceed the benefits.
By its very nature, systemd must be opaque and hugely complicated.
One can not be sure of its functionality unless he reads the code.

Please help me understand three instances of systemctl behavior.
The third instance, especially, poses a serious problem to me using systemd.

1. man systemd.unit, MAPPING OF UNIT PROPERTIES TO THEIR INVERSES, says:
Quote:
Unit settings that create a relationship with a second unit usually show up in properties of both units, for example in systemctl show output.
Yet:

Code:
me@host:~$ systemctl show bluetooth.{target,service} --property=WantedBy,Wants # no WantedBy for bluetooth.service
Wants=bluetooth.service
WantedBy=

Wants=
WantedBy=
me@host:~$ systemctl cat bluetooth.{target,service} | grep Want # explicit WantedBy in bluetooth.service 
WantedBy=bluetooth.target
2. man systemctl, Unit Commands, list-dependencies [UNIT...], says:
Quote:
Note that this command only lists units currently loaded into memory by the service manager. In particular, this command is not suitable to get a comprehensive list at all reverse dependencies on a specific unit, as it won't list the dependencies declared by units currently not loaded.
Yet:

Code:
me@host:~$ systemctl list-units bluetooth.{target,service} --all # units not loaded 
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
me@host:~$ systemctl list-dependencies bluetooth.target # shows dependency 
bluetooth.target
● └─bluetooth.service
me@host:~$ systemctl list-dependencies bluetooth.service --reverse --all # does not show dependency 
bluetooth.service
The erratic behaviour exhibited in points 1 and 2 is bad enough, but now comes point 3.
3. man systemd, CONCEPTS, says:
Quote:
Then, it will verify if the transaction is consistent (i.e. whether the ordering of all units is cycle-free).
I understand that unit files dependencies may be ill-defined, there may be cycles, but still, systemctl could have displayed a dependencies tree with a limited number of levels.
There is no way to investigate unit files dependencies other than to systemctl cat unit by unit.
How is this acceptable?

Last edited by doru; 05-22-2021 at 07:18 AM. Reason: spell
 
Old 05-16-2021, 05:36 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,789

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
How about systemd-analyze?
https://www.commandlinux.com/man-pag...analyze.1.html
 
  


Reply

Tags
system, system administration, system-config-kickstart, systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open-spec, i.MX6 UL based SBC features DAQ and wireless features LXer Syndicated Linux News 0 01-06-2019 03:12 AM
Restart systemctl*daemon​ - systemctl command not found cjosephl Linux - Newbie 7 11-11-2017 04:53 PM
Upgraded to Fedora 15 now OpenVPN doesn't work ... systemctl issue? Hanse42 Linux - Newbie 10 05-29-2011 10:32 AM
I'm looking for a table comparing windows features to linux features Dogs General 18 05-06-2010 11:16 PM
Features of KDE vs. Features of Gnome donlinux Linux - Newbie 17 12-04-2005 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration