How to automatically restart the service with Rust
I have a service written in Rust that receives an SSL acceptor and distributes SSL to some IPs collected from the database. The problem is that in some cases, this service hangs. Is there any way to stop the service and restart it from within the code that executes the connection if it encounters an error? Currently, we run it as a service in the task manager.