From 5c51df5b8fb8e03f57bf0fbef70f37d5def52d7d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 21 Jan 2024 15:54:35 -0600 Subject: add a flag to suppress config file watching --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/slskd/Core') 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 @@ -332,6 +332,15 @@ namespace slskd [RequiresRestart] public bool NoStart { get; init; } = false; + /// + /// Gets a value indicating whether the application should watch the configuration file for changes. + /// + [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; + /// /// Gets a value indicating whether the application should connect to the Soulseek network on startup. /// -- cgit v1.2.3