From 5aa23fba31e4564a1e4abbeffdf81e0c12aec965 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 20 Jul 2023 17:05:09 +0200 Subject: [PATCH] - change default value of run in foreground to false --- agent2.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 agent2.patch diff --git a/agent2.patch b/agent2.patch new file mode 100644 index 0000000..e29ab11 --- /dev/null +++ b/agent2.patch @@ -0,0 +1,12 @@ +diff -ur zabbix-6.0.19.orig/src/go/cmd/zabbix_agent2/zabbix_agent2.go zabbix-6.0.19/src/go/cmd/zabbix_agent2/zabbix_agent2.go +--- zabbix-6.0.19.orig/src/go/cmd/zabbix_agent2/zabbix_agent2.go 2023-06-27 09:11:01.000000000 +0200 ++++ zabbix-6.0.19/src/go/cmd/zabbix_agent2/zabbix_agent2.go 2023-07-20 14:41:48.877278056 +0200 +@@ -220,7 +220,7 @@ + + var foregroundFlag bool + const ( +- foregroundDefault = true ++ foregroundDefault = false + foregroundDescription = "Run Zabbix agent in foreground" + ) + flag.BoolVar(&foregroundFlag, "foreground", foregroundDefault, foregroundDescription) -- 2.44.0