Stop answering new requests, and close all listening sockets, but only shutdown after the last existing client dies.
Stop answering new requests, and close all listening sockets, but only shutdown after the last existing client dies. This is to allow servers with long-running clients to stay alive for a while and service those connections, while letting another server start up and begin handling new connections.
Reload configuration, if supported by the service.
Reload configuration, if supported by the service.
Shutdown this service.
Shutdown this service.
Start this service.
Start this service.
Generalization of a background process that runs in a thread, and can be stopped. Stopping the thread waits for it to finish running.
The code block will be run inside a "forever" loop, so it should either call a method that can be interrupted (like sleep) or block for a low timeout.