A service is reported as running, but clients cannot reach it. What command-line checks do you perform before restarting it?
Answer
Work from the client path inward: resolve the hostname, verify the intended IP and route, test the actual TCP port, confirm the service is listening on the expected interface, map the listener to the correct process, inspect service state and logs, and then check local firewall or proxy configuration if needed. Preserve evidence before restart because restarting may hide the original failure.
Strong answer includes
- follows DNS to network to listener to process to application logs
- checks the actual port rather than relying only on ping
- preserves evidence before restart or force termination
Practical example
For HTTPS on port 8443, resolve the host, test TCP 8443, inspect `ss -lntp` or `netstat -ano`, identify the owner process, then read `journalctl` or Windows Event Log. Restart only after the failing layer is understood.