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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.