systemctl command gets hang when it's executed in rpm %post script of a 3rd party package installation in Red Hat Enterprise Linux 7.7

Solution Verified - Updated -

Issue

  • During installation of a 3rd party package, systemctl daemon-reload is run and hangs for over 60 minutes.
  • This hang never happens when it's executed from a terminal directly.
  • It seems that this happens only when the command is executed from a background process.

Environment

Red Hat Enterprise Linux 7.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content