To use systemd socket activation feature for zero downtime upgrade follow this guide:
-
copy the service definition unit file
gwentapi.serviceand the socket definition unit filegwentapi.socketto/etc/systemd/system/. -
Copy the executable and the config file at the location defined by the service unit file:
/usr/local/bin/by default. -
Rename the executable to gwentapi to match the filename in the service unit file.
-
Enable the socket and start it
systemctl enable gwentapi.socketsystemctl start gwentapi.socket
This experimental feature is only supported on Linux with systemd.
- Replace the executable
- Restart the service with systemctl