Skip to content

feat(daemon): implement SIGHUP config reload - #2497

Merged
oferchen merged 1 commit into
masterfrom
feat/sighup-reload
Feb 26, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/sighup-reload

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Implement actual SIGHUP config reload in the daemon accept loop (previously only logged "config reload noted")
  • Add config_path field to RuntimeOptions to retain the startup config file path
  • Add reload_daemon_config() function that atomically swaps modules and motd via Arc replacement
  • Existing connections retain old config via Arc snapshot isolation; new connections use reloaded config
  • Graceful error handling: parse failures are logged and the daemon continues with previous config

Test plan

  • reload_config_with_no_config_path_is_noop - no config path yields no-op
  • reload_config_with_missing_file_keeps_old_config - missing file preserves old config
  • reload_config_replaces_modules_and_motd - valid config replaces modules
  • reload_config_existing_connections_keep_old_config - Arc isolation verified
  • reload_config_with_invalid_syntax_keeps_old_config - parse error preserves old config
  • reload_config_sighup_flag_triggers_reload - AtomicBool swap pattern correctness
  • parse_config_stores_config_path_for_sighup_reload - config_path stored on --config
  • no_config_flag_yields_no_config_path - no --config means no config_path
  • All 22,134 workspace tests pass

@github-actions github-actions Bot added the enhancement New feature or request label Feb 26, 2026
Add live configuration reload on SIGHUP to the daemon server loop.
When the daemon receives SIGHUP, it re-reads and re-parses the
rsyncd.conf file, replacing module definitions and MOTD for new
connections while existing connections retain the old config via
Arc snapshot isolation.
@oferchen
oferchen merged commit b19e8ea into master Feb 26, 2026
30 checks passed
@oferchen
oferchen deleted the feat/sighup-reload branch February 26, 2026 18:04
oferchen added a commit that referenced this pull request May 1, 2026
Add live configuration reload on SIGHUP to the daemon server loop.
When the daemon receives SIGHUP, it re-reads and re-parses the
rsyncd.conf file, replacing module definitions and MOTD for new
connections while existing connections retain the old config via
Arc snapshot isolation.
oferchen added a commit that referenced this pull request May 5, 2026
Add live configuration reload on SIGHUP to the daemon server loop.
When the daemon receives SIGHUP, it re-reads and re-parses the
rsyncd.conf file, replacing module definitions and MOTD for new
connections while existing connections retain the old config via
Arc snapshot isolation.
oferchen added a commit that referenced this pull request May 20, 2026
….a) (#4602)

Audit doc tracking BR-3i.a (#2497): records the path the resolved strong
checksum takes from negotiate_capabilities through ReceiverContext to the
delta-apply boundary, lists every ParallelDeltaApplier::new call site, and
recommends the exact field BR-3i.b should add to thread the algorithm into
verify_chunk.
oferchen added a commit that referenced this pull request Aug 24, 2026
….a) (#4602)

Audit doc tracking BR-3i.a (#2497): records the path the resolved strong
checksum takes from negotiate_capabilities through ReceiverContext to the
delta-apply boundary, lists every ParallelDeltaApplier::new call site, and
recommends the exact field BR-3i.b should add to thread the algorithm into
verify_chunk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant