I read from the tutorial that "server.start() does not block you may need to sleep-loop if there is nothing else for your code to do while serving." Is the recommended approach to include the following code after server.start()?
try:
while True:
time.sleep(60*60*24)
except KeyboardInterrupt:
server.stop(0)
If I'm setting up a grpc service on a remote machine, I can ssh into the machine and run command like "python3 server.py" to start the server. How can I keep the service running if I want to exit ssh from my local machine?