systemd doesn't delete stub unit files created for session scopes

Solution Verified - Updated -

Issue

  • systemd doesn't delete stub unit files created for session scopes (/run/systemd/system/session-*.scope)

    # ls /run/systemd/system
    ...
    session-10393.scope
    session-10447.scope
    session-10582.scope
    session-11387.scope
    session-11440.scope
    ...
    
  • systemctl list-unit-files exits in timeout

    # systemctl list-unit-files
    Failed to list unit files: Connection timed out
    

Environment

  • Red Hat Enterprise Linux 7
  • systemd-219-42.el7_4 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In