graceful_shutdown :: Configuration -> ThreadId -> IO ()
graceful_shutdown cfg main_thread_id = do
log_info "SIGTERM received, removing PID file and shutting down."
removeLink (pidfile cfg)
throwTo main_thread_id ExitSuccess
graceful_shutdown :: Configuration -> ThreadId -> IO ()
graceful_shutdown cfg main_thread_id = do
log_info "SIGTERM received, removing PID file and shutting down."
removeLink (pidfile cfg)
throwTo main_thread_id ExitSuccess