Skip to content

Conversation

@AmurgCodru
Copy link
Contributor

@AmurgCodru AmurgCodru 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.

@fclairamb fclairamb enabled auto-merge (squash) June 4, 2025 22:49
@fclairamb fclairamb merged commit f5a9ad6 into fclairamb:main Jun 4, 2025
2 checks passed
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.

2 participants