Handling restart signal

See the following post for details on refresh-mode and stop-mode:

You’ll ultimately want to use, eg. stop-mode: sigterm and then establish a proper handler for SIGTERM in the code.