--- /dev/null
+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)