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 start
command doesn't return until certain websites are available? -
I have Tomcat running on a server. When I use
systemctl
to 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, tools, and much more.