Why systemctl status command for any service shows different hostname than actual hostname ?

Solution Verified - Updated -

Issue

  • Hostname was changed but systemctl status command for services shows old hostname.
  • Why does services related logs shows old hostname even after change of hostname ?
  • Hostname was changed from node1.example.com to node2.example.com but systemctl status command for few services still shows hostname as node1.example.com.

Environment

  • Red Hat Enterprise Linux 7
  • systemd

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