[systemd-devel] systemctl log verbosity

Dave Close dave at compata.com
Mon Aug 16 23:27:19 UTC 2021


I'm trying to run "systemctl show" in a cron script. It works but I get
a huge number of extra lines in my log for each run. Why? Can this be
suppressed. I don't want to overfill the log.

There is nothing in the man page (that I noticed) indicating that "show"
causes anything to be logged. But here's an example of what I see.

>Aug 16 16:10:01 svcs systemd[1]: Created slice User Slice of UID 0.
>Aug 16 16:10:01 svcs systemd[1]: Starting User Runtime Directory /run/user/0...
>Aug 16 16:10:01 svcs systemd[1]: Finished User Runtime Directory /run/user/0.
>Aug 16 16:10:01 svcs systemd[1]: Starting User Manager for UID 0...
>Aug 16 16:10:01 svcs systemd[80491]: Queued start job for default target Main User Target.
>Aug 16 16:10:01 svcs systemd[80491]: Created slice User Application Slice.
>Aug 16 16:10:01 svcs systemd[80491]: Condition check resulted in Mark boot as successful after the 
user session has run 2 minutes being skipped.
>Aug 16 16:10:01 svcs systemd[80491]: Started Daily Cleanup of User's Temporary Directories.
>Aug 16 16:10:01 svcs systemd[80491]: Reached target Paths.
>Aug 16 16:10:01 svcs systemd[80491]: Reached target Timers.
>Aug 16 16:10:01 svcs systemd[80491]: Starting D-Bus User Message Bus Socket.
>Aug 16 16:10:01 svcs systemd[80491]: Condition check resulted in PipeWire PulseAudio being skipped.
>Aug 16 16:10:01 svcs systemd[80491]: Listening on Multimedia System.
>Aug 16 16:10:01 svcs systemd[80491]: Starting Create User's Volatile Files and Directories...
>Aug 16 16:10:01 svcs systemd[80491]: Finished Create User's Volatile Files and Directories.
>Aug 16 16:10:01 svcs systemd[80491]: Listening on D-Bus User Message Bus Socket.
>Aug 16 16:10:01 svcs systemd[80491]: Reached target Sockets.
>Aug 16 16:10:01 svcs systemd[80491]: Reached target Basic System.
>Aug 16 16:10:01 svcs systemd[80491]: Reached target Main User Target.
>Aug 16 16:10:01 svcs systemd[80491]: Startup finished in 151ms.
>Aug 16 16:10:01 svcs systemd[1]: Started User Manager for UID 0.
>Aug 16 16:10:01 svcs systemd[1]: Started Session 72 of User root.
>Aug 16 16:10:01 svcs root[80504]: ## logger output from cron script ##
>Aug 16 16:10:01 svcs systemd[1]: session-72.scope: Deactivated successfully.

I see these additional 23 lines (plus the one-line script output) every
time the script runs. That seems excessively verbose to me.

The system is Fedora 34 x86_64.
-- 
Dave Close, Compata, Irvine CA      "A man loses contact with reality
dave at compata.com, +1 714 434 7359    if he is not surrounded by his
dhclose at alumni.caltech.edu           books." -- François Mitterrand



More information about the systemd-devel mailing list