How to configure a systemd service like tomcat with Type=notify so that startup completion signifies website availability
Issue
-
How can you configure a systemd service in Red Hat Enterprise Linux (RHEL) 7 such that a
systemctl startcommand doesn't return until certain websites are available? -
I have Tomcat running on a server. When I use
systemctlto restart the service, it doesn't accurately confirm the startup status; instead it returns immediately, prior to the service actually being ready.
Environment
- Red Hat Enterprise Linux 7
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.
