Repository navigation
feat(daemon): parse syslog facility and syslog tag directives in rsyncd.conf - #2496
Merged
Merged
Conversation
…cd.conf Add support for two global-only directives matching upstream rsync: - `syslog facility` sets the syslog facility for logging (default: "daemon") - `syslog tag` sets the syslog tag/ident prefix (default: "oc-rsyncd") Both directives are parsed in the GlobalConfig (rsyncd_config.rs), the inner config parser (config_parsing.rs), and wired through RuntimeOptions. Duplicate detection, empty-value rejection, and module-scope isolation follow the same patterns as existing global directives (pid file, lock file, reverse lookup).
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…cd.conf (#2496) Add support for two global-only directives matching upstream rsync: - `syslog facility` sets the syslog facility for logging (default: "daemon") - `syslog tag` sets the syslog tag/ident prefix (default: "oc-rsyncd") Both directives are parsed in the GlobalConfig (rsyncd_config.rs), the inner config parser (config_parsing.rs), and wired through RuntimeOptions. Duplicate detection, empty-value rejection, and module-scope isolation follow the same patterns as existing global directives (pid file, lock file, reverse lookup).
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…cd.conf (#2496) Add support for two global-only directives matching upstream rsync: - `syslog facility` sets the syslog facility for logging (default: "daemon") - `syslog tag` sets the syslog tag/ident prefix (default: "oc-rsyncd") Both directives are parsed in the GlobalConfig (rsyncd_config.rs), the inner config parser (config_parsing.rs), and wired through RuntimeOptions. Duplicate detection, empty-value rejection, and module-scope isolation follow the same patterns as existing global directives (pid file, lock file, reverse lookup).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
syslog facilityglobal directive parsing (default: "daemon") matching upstreamloadparm.csyslog tagglobal directive parsing (default: "oc-rsyncd", upstream default "rsyncd")GlobalConfig(rsyncd_config.rs),ParsedConfigModules(config_parsing.rs), andRuntimeOptionsTest plan
syslog facilityparsed from global section with custom values (local0-local7, auth, daemon, etc.)syslog tagparsed from global section with custom valuescargo fmt -p daemonpassescargo clippy -p daemon --all-targets --all-features --no-deps -D warningspassescargo nextest run -p daemonpasses (861 tests, 0 failures)