dictd icon indicating copy to clipboard operation
dictd copied to clipboard

Please exit with zero status upon receiving SIGTERM

Open bjornfor opened this issue 7 months ago • 0 comments

Services run under systemd receive SIGTERM when it's time to stop the service. dictd doesn't seem to handle SIGTERM and exits with status 143 (128 + 15 SIGTERM). Since the exit code is non-zero, systemd marks the service as failed. I'd like dictd to exit with zero status in this case, to not falsely report errors to the service manager.

Workaround: tell systemd/dictd.service that the SIGTERM exit code is success: SuccessExitStatus=143.

bjornfor avatar Jun 28 '24 22:06 bjornfor