[systemd-devel] How to restart my socket activated service safely ?
Francis Moreau
francis.moro at gmail.com
Tue Jul 27 07:10:38 UTC 2021
Hello,
During my application update, I want to restart my service which is
activated by a socket but want to be sure that no request sent to my
service will be missed. I also want to restart the socket too so
systemd uses the latest version of the socket unit file.
If I restart the socket when the service is still running then I get
an error message: "rotor.socket: Socket service rotor.service already
active, refusing."
If I stop the service first and restart the socket then there's a
short time frame where requests can be lost.
What is the recommended way to restart my service ?
Thank you in advance.
--
Francis
More information about the systemd-devel
mailing list