I have systemd setup, and it runs:
- nginx.service on
:80
- wikiname.socket :8080
- wikiname.service :9094
So here is what I do...
1. I check if wikiname.service is running...and it is not.
1. I start the wikiname.socket unit.
1. I visit http://wikiserver:8080/ my browser does nothing...
1. I check again to see if wikiname.service is running and now it is, it was started by my browser activating the socket!
This is great and all but...
How can I have the wikiname.socket on the same socket as wikiname.service?
P.S. Before I found out about socket activation in systemd, I was starting the wikiname.service process manually and then when the correct path was called on nginx :80
the request would be proxied to the wikiname.service
, but I'd rather use socket activation, so how do I keep both the wikiname.socket
and wikiname.service
on the same port?
Asked by leeand00
(4937 rep)
Nov 24, 2016, 08:25 PM
Last activity: Aug 16, 2017, 02:18 PM
Last activity: Aug 16, 2017, 02:18 PM