How to configure a systemd service like tomcat with Type=notify so that startup completion signifies website availability

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content