Skip to content

Drop ExecReload from SystemD services - #145

Merged
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:drop-execreload-kill
Sep 4, 2026
Merged

Drop ExecReload from SystemD services#145
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:drop-execreload-kill

Conversation

@Sharpie

@Sharpie Sharpie commented Sep 4, 2026

Copy link
Copy Markdown
Member

Pull Request (PR) description

This commit removes ExecReload=kill -HUP $MAINPID from the SystemD service templates. Using kill to send SIGHUP is redundant when Type=notify-reload is set as SystemD will send the signal its self.

SystemD also marks the service as "reloaded" if the ExecReload command exits with a success code. This can result in systemctl reload returning early, before the service is ready to accept traffic.

This Pull Request (PR) fixes the following issues

@Sharpie Sharpie added the bug Something isn't working label Sep 4, 2026
@Sharpie
Sharpie enabled auto-merge September 4, 2026 05:41
@Sharpie
Sharpie disabled auto-merge September 4, 2026 05:41
This commit removes `ExecReload=kill -HUP $MAINPID` from the SystemD
service templates. Using `kill` to send `SIGHUP` is redundant when
`Type=notify-reload` is set as SystemD will send the signal its self.

SystemD also marks the service as "reloaded" if the `ExecReload`
command exits with a success code. This can result in `systemctl reload`
returning early, before the service is ready to accept traffic.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie
Sharpie force-pushed the drop-execreload-kill branch from 9ffd484 to 34264e2 Compare September 4, 2026 05:42
@Sharpie
Sharpie enabled auto-merge September 4, 2026 05:43
@Sharpie
Sharpie merged commit 60b3f0d into OpenVoxProject:main Sep 4, 2026
9 checks passed
@Sharpie
Sharpie deleted the drop-execreload-kill branch September 4, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants