https://bz.apache.org/bugzilla/show_bug.cgi?id=60560

--- Comment #8 from Coty Sutherland <csuth...@redhat.com> ---
And just individuals interested in testing this, you need the following new
socket descriptor and modification to the systemd service unit:

Create a socket in /etc/systemd/system/tomcat.socket (this one opens a socket
bound to localhost on port 80):

~~~
[Unit]
Description=Socket for Tomcat
PartOf=tomcat.service

[Socket]
ListenStream=127.0.0.1:80

[Install]
WantedBy=sockets.target
~~~

Then add `Requires=tomcat.socket` to the [Unit] section of your tomcat systemd
service unit and `StandardInput=socket` to the [Service] section.

After adding those, starting the service (systemctl start tomcat) will open the
socket and pass that through to tomcat. You can also start the tomcat service
on the first request to localhost:80, but you have to start the socket first
(systemctl start tomcat.socket).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to