Why systemctl status command for any service shows different hostname than actual hostname ?
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
tonode2.example.com
butsystemctl status
command for few services still shows hostname asnode1.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.