Why systemctl status command for any service shows different hostname than actual hostname ?
Issue
- Hostname was changed but
systemctl statuscommand for services shows old hostname. - Why does services related logs shows old hostname even after change of hostname ?
- Hostname was changed from
node1.example.comtonode2.example.combutsystemctl statuscommand 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
