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

Adding config reload capacity via SIGHUP - #1444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LordPraslea
Copy link

@LordPraslea LordPraslea commented Dec 31, 2024

Hi
Thanks for the project

I created a simple pull request which adds SIGHUP reload capacity to the server enabling it to reload the config without needing to restart the ftpserver process. Sice you already had SIGTERM i just extended it :)

I've experimented with many other config reloads but this is the easiest one to add and is supported by systemd and other linux/unix systems (https://en.wikipedia.org/wiki/SIGHUP#Modern_usage)

kill -SIGHUP pid

I've tested it and if there's an error, the previous config just stays in memory and the current one is rejected.

Alternatives: file HASH/reload version could also be useful, fsnotify adds too many extra dependencies.

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

Successfully merging this pull request may close these issues.

1 participant