Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please exit with zero status upon receiving SIGTERM #22

Open
bjornfor opened this issue Jun 28, 2024 · 0 comments
Open

Please exit with zero status upon receiving SIGTERM #22

bjornfor opened this issue Jun 28, 2024 · 0 comments

Comments

@bjornfor
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant