Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 566 Bytes

Graceful-shutdown-and-restart.md

File metadata and controls

9 lines (5 loc) · 566 Bytes

Shadowsocks supports graceful shutdown like nginx.

You can send SIGQUIT to sslocal or ssserver process. The process closes listening sockets but still serves alive connections, allowing you to start a new process on the same port. When all connections on the old process are closed, it will then exit.

If you are using workers, send SIGQUIT to the master process.

On Windows, please use SIGTERM instead.

Notice: only some versions support this feature.