mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 04:45:52 +03:00
[PR #22] [MERGED] Handle signals and gracefully shut down, waiting for clients #66
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/smtprelay#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/decke/smtprelay/pull/22
Author: @JonathonReinhart
Created: 3/18/2021
Status: ✅ Merged
Merged: 4/1/2021
Merged by: @JonathonReinhart
Base:
master← Head:smtpd-shutdown📝 Commits (1)
1b7b551Handle signals and gracefully shut down server📊 Changes
1 file changed (+42 additions, -5 deletions)
View changed files
📝
main.go(+42 -5)📄 Description
Handle
SIGINT,SIGQUIT, andSIGTERMby gracefully shutting down the SMTP server and waiting for all child connections to finish.This PR is a result of discussions on #13 and is based loosely on grafana#11.
One can easily verify the behavior by:
smtprelaysmtprelayand observe that it is still runningsmtprelaystop🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.