diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-01-21 15:54:35 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-01-21 15:54:35 -0600 |
| commit | 5c51df5b8fb8e03f57bf0fbef70f37d5def52d7d (patch) | |
| tree | 825e97836faf315578824960424529aa650cbb41 /src/slskd/Core | |
| parent | 416d0451118d69384402100ef24d63af7e1835b4 (diff) | |
| download | slskd-5c51df5b8fb8e03f57bf0fbef70f37d5def52d7d.tar.gz | |
add a flag to suppress config file watching
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index c1f4d558..3727b89d 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -333,6 +333,15 @@ namespace slskd public bool NoStart { get; init; } = false; /// <summary> + /// Gets a value indicating whether the application should watch the configuration file for changes. + /// </summary> + [Argument(default, "no-config-watch")] + [EnvironmentVariable("NO_CONFIG_WATCH")] + [Description("do not watch the config file for changes")] + [RequiresRestart] + public bool NoConfigWatch { get; init; } = false; + + /// <summary> /// Gets a value indicating whether the application should connect to the Soulseek network on startup. /// </summary> [Argument(default, "no-connect")] |
