From: champtar Date: Wed, 4 May 2016 17:23:09 +0000 (+0200) Subject: Merge pull request #2126 from lynxis/libmicrohttpd X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=33843c23f1fc262ab635d7cba6b442ae7f40026c;hp=a99aa1ff48dd18086039a325ad5bcc77a7eadaac;p=feed%2Fpackages.git Merge pull request #2126 from lynxis/libmicrohttpd Libmicrohttpd: add build variant for ssl + no-ssl + build parallel --- diff --git a/admin/debootstrap/Makefile b/admin/debootstrap/Makefile index 8d38005527..61d534f742 100644 --- a/admin/debootstrap/Makefile +++ b/admin/debootstrap/Makefile @@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=debootstrap -PKG_VERSION:=1.0.75 +PKG_VERSION:=1.0.80 PKG_RELEASE:=1 PKG_MAINTAINER=Daniel Golle PKG_SOURCE:=$(PKG_NAME)-udeb_$(PKG_VERSION)_all.udeb PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/d/debootstrap -PKG_MD5SUM:=5b568d66390d76fba87b839984254730 +PKG_MD5SUM:=498d7c3852760ede28374ba74695f777 PKG_LICENSE:=Unique PKG_LICENSE_FILES:=debian/copyright diff --git a/admin/htop/Makefile b/admin/htop/Makefile index 7cb47067a1..ac9c7d048f 100644 --- a/admin/htop/Makefile +++ b/admin/htop/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=htop -PKG_VERSION:=1.0.3 +PKG_VERSION:=2.0.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://hisham.hm/htop/releases/$(PKG_VERSION)/ -PKG_MD5SUM:=e768b9b55c033d9c1dffda72db3a6ac7 +PKG_MD5SUM:=f75fe92b4defaa80d99109830f34b5e2 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING @@ -39,15 +39,12 @@ define Package/htop/description endef CONFIGURE_ARGS += \ - --disable-native-affinity \ --disable-unicode \ - --enable-hwloc + --disable-hwloc CONFIGURE_VARS += \ ac_cv_file__proc_stat=yes \ - ac_cv_file__proc_meminfo=yes \ - ac_cv_func_malloc_0_nonnull=yes \ - ac_cv_func_realloc_0_nonnull=yes + ac_cv_file__proc_meminfo=yes define Package/htop/install $(INSTALL_DIR) $(1)/usr/bin diff --git a/admin/monit/Makefile b/admin/monit/Makefile index b172de4aa7..4f90c1264e 100644 --- a/admin/monit/Makefile +++ b/admin/monit/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=monit -PKG_VERSION:=5.14 +PKG_VERSION:=5.17.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://mmonit.com/monit/dist -PKG_MD5SUM:=1b3ae1eb08a0914402a8764e5689c1c5 +PKG_MD5SUM:=6918ed7411a244c9e158f5e54c86be78 PKG_LICENSE:=AGPL-3.0 PKG_LICENSE_FILES:=COPYING diff --git a/admin/sudo/Makefile b/admin/sudo/Makefile index 3f2d6f81ae..43e92977d7 100644 --- a/admin/sudo/Makefile +++ b/admin/sudo/Makefile @@ -64,8 +64,8 @@ define Host/Compile endef define Host/Install - $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin - $(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(STAGING_DIR_HOST)/bin/ + $(INSTALL_DIR) $(STAGING_DIR)/host/bin + $(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(STAGING_DIR)/host/bin/ endef $(eval $(call HostBuild)) diff --git a/admin/sudo/patches/010-cross-compile-fixes.patch b/admin/sudo/patches/010-cross-compile-fixes.patch index 4e80d4d42f..b9c1e79956 100644 --- a/admin/sudo/patches/010-cross-compile-fixes.patch +++ b/admin/sudo/patches/010-cross-compile-fixes.patch @@ -1,25 +1,16 @@ diff -rupN sudo-1.8.11p2.orig/lib/util/Makefile.in sudo-1.8.11p2/lib/util/Makefile.in --- sudo-1.8.11p2.orig/lib/util/Makefile.in 2014-10-07 22:26:20.000000000 +0200 +++ sudo-1.8.11p2/lib/util/Makefile.in 2014-12-09 21:44:35.610041162 +0100 -@@ -17,6 +17,8 @@ - # @configure_input@ - # - -+include $(TOPDIR)/rules.mk -+ - #### Start of system configuration section. #### - - srcdir = @srcdir@ -@@ -142,10 +144,10 @@ libsudo_util.la: $(LTOBJS) @LT_LDDEP@ +@@ -142,10 +142,10 @@ libsudo_util.la: $(LTOBJS) @LT_LDDEP@ esac siglist.c: mksiglist - ./mksiglist > $@ -+ $(STAGING_DIR_HOST)/bin/mksiglist > $@ ++ mksiglist > $@ signame.c: mksigname - ./mksigname > $@ -+ $(STAGING_DIR_HOST)/bin/mksigname > $@ ++ mksigname > $@ mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@ diff --git a/admin/zabbix/Makefile b/admin/zabbix/Makefile index 424779ef98..87e51c3be6 100644 --- a/admin/zabbix/Makefile +++ b/admin/zabbix/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zabbix -PKG_VERSION:=2.4.6 -PKG_RELEASE:=2 +PKG_VERSION:=3.0.1 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/zabbix -PKG_MD5SUM:=06ad8d5808a0eddf2b9f0a256b6a5fde +PKG_MD5SUM:=890d9eec69304ad552959fabe0a5d122 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING @@ -33,11 +33,7 @@ define Package/zabbix/Default SUBMENU:=zabbix MAINTAINER:=Etienne CHAMPETIER USERID:=zabbix=53:zabbix=53 -endef - -define Package/zabbix-agent - $(call Package/zabbix/Default) - TITLE+= agent + DEPENDS += $(ICONV_DEPENDS) endef define Package/zabbix-agentd @@ -48,19 +44,19 @@ endef define Package/zabbix-extra-mac80211 $(call Package/zabbix/Default) TITLE+= discovery/userparameters for mac80211 - DEPENDS += +zabbix-agentd @PACKAGE_MAC80211_DEBUGFS @KERNEL_DEBUG_FS + DEPENDS = +zabbix-agentd @PACKAGE_MAC80211_DEBUGFS @KERNEL_DEBUG_FS endef define Package/zabbix-extra-network $(call Package/zabbix/Default) TITLE+= discovery/userparameters for network - DEPENDS += +zabbix-agentd +libuci-lua +lua + DEPENDS = +zabbix-agentd +libuci-lua +lua endef define Package/zabbix-extra-wifi $(call Package/zabbix/Default) TITLE+= discovery/userparameters for wifi - DEPENDS += +zabbix-agentd +libiwinfo-lua +libuci-lua +lua + DEPENDS = +zabbix-agentd +libiwinfo-lua +libuci-lua +lua endef define Package/zabbix-sender @@ -158,9 +154,6 @@ define Package/zabbix/install/zabbix.conf.d $(1)/etc/zabbix_agentd.conf.d/$(2) endef -define Package/zabbix-agent/conffiles -/etc/zabbix_agent.conf -endef define Package/zabbix-agentd/conffiles /etc/zabbix_agentd.conf endef @@ -192,11 +185,6 @@ define Build/Compile $(call Build/Compile/zabbix-extra-mac80211) endef -define Package/zabbix-agent/install - $(call Package/zabbix/install/sbin,$(1),agent) - $(call Package/zabbix/install/etc,$(1),agent) -endef - define Package/zabbix-agentd/install $(INSTALL_DIR) $(1)/etc/zabbix_agentd.conf.d $(call Package/zabbix/install/sbin,$(1),agentd) @@ -237,7 +225,6 @@ define Package/zabbix-proxy/install $(call Package/zabbix/install/etc,$(1),proxy) endef -$(eval $(call BuildPackage,zabbix-agent)) $(eval $(call BuildPackage,zabbix-agentd)) $(eval $(call BuildPackage,zabbix-extra-mac80211)) $(eval $(call BuildPackage,zabbix-extra-network)) diff --git a/admin/zabbix/files/mac80211 b/admin/zabbix/files/mac80211 index 93d8351898..afa50aeba5 100644 --- a/admin/zabbix/files/mac80211 +++ b/admin/zabbix/files/mac80211 @@ -2,10 +2,10 @@ # If you want to know the exact meaning of an UserParameter, you can search in the ieee80211 standard: # http://standards.ieee.org/getieee802/download/802.11-2012.pdf -# exemple: for mac80211.ACKFailureCount search for dot11ACKFailureCount (page 2145) +# example: for mac80211.ACKFailureCount search for dot11ACKFailureCount (page 2145) # mac80211 phy discovery (like 'phy0') -# exemple: {"data":[{"{#PHY}":"phy0"}]} +# example: {"data":[{"{#PHY}":"phy0"}]} # UserParameter=mac80211.phydiscovery,zabbix_helper_mac80211 discovery diff --git a/admin/zabbix/files/network b/admin/zabbix/files/network index 51cb1cbc25..b68e2a5054 100644 --- a/admin/zabbix/files/network +++ b/admin/zabbix/files/network @@ -1,7 +1,7 @@ #see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates # network interface discovery -# exemple: {"data":[{"{#IF}":"lo", "{#NET}":"loopback"},{"{#IF}":"br-lan", "{#NET}":"lan"},{"{#IF}":"eth0.1", "{#NET}":"wan"}]} +# example: {"data":[{"{#IF}":"lo", "{#NET}":"loopback"},{"{#IF}":"br-lan", "{#NET}":"lan"},{"{#IF}":"eth0.1", "{#NET}":"wan"}]} # UserParameter=netowrt.discovery,lua -l uci -e 'x = uci.cursor(nil, "/var/state");list = "{\"data\":[";x:foreach("network", "interface", function(s) list=list.."{\"{#IF}\":\""..s.ifname.."\", \"{#NET}\":\""..s[".name"].."\"}," end); list=string.gsub(list,",$",""); print(list.."]}")' diff --git a/admin/zabbix/files/wifi b/admin/zabbix/files/wifi index 6315ea995b..f03d9b41eb 100644 --- a/admin/zabbix/files/wifi +++ b/admin/zabbix/files/wifi @@ -1,7 +1,7 @@ #see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates # wifi interface discovery -# exemple: {"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"Openwrt", "{#NET}":"lan", "{#DEV}":"radio0", "{#ENC}":"psk2+ccmp", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"xx:xx:xx:xx:xx:xx"}]} +# example: {"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"Openwrt", "{#NET}":"lan", "{#DEV}":"radio0", "{#ENC}":"psk2+ccmp", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"xx:xx:xx:xx:xx:xx"}]} # ubus call only work as root so you need to run zabbix as root to use wifi.ifdiscovery UserParameter=wifi.ifdiscovery, lua -l ubus -l iwinfo -e 'u=ubus.connect();list="{\"data\":[";stat=u:call("network.wireless", "status", {});for dev, dev_table in pairs(stat) do for i, iface in pairs(dev_table["interfaces"]) do c=iface["config"];i=iface["ifname"];t=iwinfo.type(i);iw=iwinfo[t];e = iw.encryption(i);e = e and e.description or "None";n = table.concat(c["network"]," ");list=list.."{\"{#IF}\":\""..i.."\", \"{#MODE}\":\""..iw.mode(i).."\", \"{#SSID}\":\""..c["ssid"].."\", \"{#NET}\":\""..n.."\", \"{#DEV}\":\""..dev.."\", \"{#ENC}\":\""..e.."\", \"{#TYPE}\":\""..t.."\", \"{#HWMODE}\":\"".."?".."\", \"{#CHANNEL}\":\""..iw.channel(i).."\", \"{#BSSID}\":\""..iw.bssid(i).."\"},";end;end;list=string.gsub(list,",$","");print(list.."]}")' diff --git a/admin/zabbix/files/zabbix_agentd.init b/admin/zabbix/files/zabbix_agentd.init index 86f1cedead..ea886346e7 100755 --- a/admin/zabbix/files/zabbix_agentd.init +++ b/admin/zabbix/files/zabbix_agentd.init @@ -16,6 +16,8 @@ start_service() { procd_open_instance procd_set_param command ${PROG} -c ${CONFIG} -f procd_set_param respawn + procd_set_param stdout 1 + procd_set_param stderr 1 procd_close_instance } diff --git a/admin/zabbix/patches/002-fix-res_send-on-uclibc.patch b/admin/zabbix/patches/002-fix-res_send-on-uclibc.patch index cedad90048..f4b5d33a12 100644 --- a/admin/zabbix/patches/002-fix-res_send-on-uclibc.patch +++ b/admin/zabbix/patches/002-fix-res_send-on-uclibc.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -152,6 +152,10 @@ if test "x$found_resolv" != "xyes"; then +@@ -161,6 +161,10 @@ if test "x$found_resolv" != "xyes"; then AC_MSG_ERROR([Unable to do DNS lookups (libresolv check failed)]) fi LIBS="${LIBS} ${RESOLV_LIBS}" @@ -13,7 +13,7 @@ dnl * * --- a/src/libs/zbxsysinfo/common/net.c +++ b/src/libs/zbxsysinfo/common/net.c -@@ -450,6 +450,7 @@ static int dns_query(AGENT_REQUEST *requ +@@ -471,6 +471,7 @@ static int dns_query(AGENT_REQUEST *requ return SYSINFO_RET_FAIL; } @@ -21,7 +21,7 @@ if (-1 == (res = res_mkquery(QUERY, zone, C_IN, type, NULL, 0, NULL, buf, sizeof(buf)))) { SET_MSG_RESULT(result, zbx_dsprintf(NULL, "Cannot create DNS query: %s", zbx_strerror(errno))); -@@ -480,6 +481,11 @@ static int dns_query(AGENT_REQUEST *requ +@@ -505,6 +506,11 @@ static int dns_query(AGENT_REQUEST *requ _res.retry = retry; res = res_send(buf, res, answer.buffer, sizeof(answer.buffer)); @@ -31,5 +31,5 @@ + return SYSINFO_RET_FAIL; +#endif + _res.options = saved_options; _res.retrans = saved_retrans; - _res.retry = saved_retry; diff --git a/admin/zabbix/patches/002-uclibc_loadavg.patch b/admin/zabbix/patches/002-uclibc_loadavg.patch index 191f1a136f..ce62d06c33 100644 --- a/admin/zabbix/patches/002-uclibc_loadavg.patch +++ b/admin/zabbix/patches/002-uclibc_loadavg.patch @@ -1,8 +1,8 @@ --- a/src/libs/zbxsysinfo/linux/cpu.c +++ b/src/libs/zbxsysinfo/linux/cpu.c -@@ -62,6 +62,45 @@ int SYSTEM_CPU_DISCOVERY(AGENT_REQUEST * - return SYSINFO_RET_OK; - } +@@ -22,6 +22,45 @@ + #include "stats.h" + #include "log.h" + +/* uclibc and dietlibc do not have this junk -ReneR */ diff --git a/admin/zabbix/patches/003-change-user-and-foreground.patch b/admin/zabbix/patches/003-change-user-and-foreground.patch new file mode 100644 index 0000000000..6779e47194 --- /dev/null +++ b/admin/zabbix/patches/003-change-user-and-foreground.patch @@ -0,0 +1,17 @@ +--- a/src/libs/zbxnix/daemon.c ++++ b/src/libs/zbxnix/daemon.c +@@ -300,11 +300,14 @@ int daemon_start(int allow_root, const c + + if (0 == allow_root && 0 == getuid()) /* running as root? */ + { ++#if 0 ++/* allow changing user and foreground */ + if (0 != (flags & ZBX_TASK_FLAG_FOREGROUND)) + { + zbx_error("cannot run as root!"); + exit(EXIT_FAILURE); + } ++#endif + + if (NULL == user) + user = "zabbix"; diff --git a/admin/zabbix/patches/010-change-agentd-config.patch b/admin/zabbix/patches/010-change-agentd-config.patch index e4812f6ef9..8b16b28032 100644 --- a/admin/zabbix/patches/010-change-agentd-config.patch +++ b/admin/zabbix/patches/010-change-agentd-config.patch @@ -1,6 +1,6 @@ --- a/conf/zabbix_agentd.conf +++ b/conf/zabbix_agentd.conf -@@ -3,12 +3,8 @@ +@@ -3,12 +3,11 @@ ############ GENERAL PARAMETERS ################# @@ -12,10 +12,13 @@ -# PidFile=/tmp/zabbix_agentd.pid +# We do not need PidFile with procd +# PidFile=/var/run/zabbix_agentd.pid ++ ++# use syslog ++LogType=system - ### Option: LogFile - # Name of log file. -@@ -18,8 +14,6 @@ + ### Option: LogType + # Specifies where log messages are written to: +@@ -27,8 +26,6 @@ # Default: # LogFile= @@ -24,7 +27,7 @@ ### Option: LogFileSize # Maximum size of log file in MB. # 0 - disable automatic log rotation. -@@ -104,6 +98,7 @@ Server=127.0.0.1 +@@ -114,6 +111,7 @@ Server=127.0.0.1 # Range: 0-100 # Default: # StartAgents=3 @@ -32,7 +35,7 @@ ##### Active checks related -@@ -119,8 +114,6 @@ Server=127.0.0.1 +@@ -129,8 +127,6 @@ Server=127.0.0.1 # Default: # ServerActive= @@ -41,7 +44,7 @@ ### Option: Hostname # Unique, case sensitive hostname. # Required for active checks and must match hostname as configured on the server. -@@ -130,8 +123,6 @@ ServerActive=127.0.0.1 +@@ -140,8 +136,6 @@ ServerActive=127.0.0.1 # Default: # Hostname= @@ -50,7 +53,7 @@ ### Option: HostnameItem # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined. # Does not support UserParameters or aliases. -@@ -249,8 +240,8 @@ Hostname=Zabbix server +@@ -259,8 +253,8 @@ Hostname=Zabbix server # Include= # Include=/usr/local/etc/zabbix_agentd.userparams.conf diff --git a/admin/zabbix/patches/015-daemon-foreground.patch b/admin/zabbix/patches/015-daemon-foreground.patch deleted file mode 100644 index 364e703604..0000000000 --- a/admin/zabbix/patches/015-daemon-foreground.patch +++ /dev/null @@ -1,243 +0,0 @@ ---- a/include/common.h -+++ b/include/common.h -@@ -1083,4 +1083,7 @@ int parse_serveractive_element(char *str - - char *zbx_dyn_escape_shell_single_quote(const char *text); - -+#define ZBX_RUN_BACKGROUND 0 -+#define ZBX_RUN_FOREGROUND 1 -+ - #endif ---- a/include/daemon.h -+++ b/include/daemon.h -@@ -28,7 +28,7 @@ extern char *CONFIG_PID_FILE; - - #include "threads.h" - --int daemon_start(int allow_root, const char *user); -+int daemon_start(int allow_root, const char *user, int run_foreground); - void daemon_stop(); - - int zbx_sigusr_send(int flags); -@@ -36,6 +36,6 @@ int zbx_sigusr_send(int flags); - #define ZBX_IS_RUNNING() 1 - #define ZBX_DO_EXIT() - --#define START_MAIN_ZABBIX_ENTRY(a, u) daemon_start(a, u) -+#define START_MAIN_ZABBIX_ENTRY(a, u, f) daemon_start(a, u, f) - - #endif /* ZABBIX_DAEMON_H */ ---- a/src/libs/zbxnix/daemon.c -+++ b/src/libs/zbxnix/daemon.c -@@ -272,16 +272,17 @@ static void set_daemon_signal_handlers() - * * - * Purpose: init process as daemon * - * * -- * Parameters: allow_root - allow root permission for application * -- * user - user on the system to which to drop the * -- * privileges * -+ * Parameters: allow_root - allow root permission for application * -+ * user - user on the system to which to drop the * -+ * privileges * -+ * run_foreground - should it close its controling tty * - * * - * Author: Alexei Vladishev * - * * - * Comments: it doesn't allow running under 'root' if allow_root is zero * - * * - ******************************************************************************/ --int daemon_start(int allow_root, const char *user) -+int daemon_start(int allow_root, const char *user, int run_foreground) - { - pid_t pid; - struct passwd *pwd; -@@ -336,15 +337,22 @@ int daemon_start(int allow_root, const c - #endif - } - -- if (0 != (pid = zbx_fork())) -- exit(EXIT_SUCCESS); -+ if ( ZBX_RUN_FOREGROUND != run_foreground) -+ if (0 != (pid = zbx_fork())) -+ exit(EXIT_SUCCESS); - - setsid(); - - signal(SIGHUP, SIG_IGN); - -- if (0 != (pid = zbx_fork())) -- exit(EXIT_SUCCESS); -+ if ( ZBX_RUN_FOREGROUND == run_foreground) { -+ zabbix_log(LOG_LEVEL_INFORMATION, "Running in foreground..."); -+ } else { -+ if (0 != (pid = zbx_fork())) -+ exit(EXIT_SUCCESS); -+ } -+ -+ - - if (-1 == chdir("/")) /* this is to eliminate warning: ignoring return value of chdir */ - assert(0); ---- a/src/zabbix_agent/zabbix_agentd.c -+++ b/src/zabbix_agent/zabbix_agentd.c -@@ -62,6 +62,8 @@ const char *progname = NULL; - static char DEFAULT_CONFIG_FILE[] = SYSCONFDIR "/zabbix_agentd.conf"; - #endif - -+int CONFIG_FOREGROUND = ZBX_RUN_BACKGROUND; -+ - /* application TITLE */ - const char title_message[] = APPLICATION_NAME - #if defined(_WIN64) -@@ -93,6 +95,7 @@ const char usage_message[] = - const char *help_message[] = { - "Options:", - " -c --config Absolute path to the configuration file", -+ " -f --foreground Run in foreground don't fork", - " -p --print Print known items and exit", - " -t --test Test specified item and exit", - " -h --help Display help information", -@@ -127,6 +130,7 @@ const char *help_message[] = { - /* COMMAND LINE OPTIONS */ - static struct zbx_option longopts[] = - { -+ {"foreground", 0, NULL, 'f'}, - {"config", 1, NULL, 'c'}, - {"help", 0, NULL, 'h'}, - {"version", 0, NULL, 'V'}, -@@ -147,7 +151,7 @@ static struct zbx_option longopts[] = - }; - - static char shortopts[] = -- "c:hVpt:" -+ "c:hfVpt:" - #ifndef _WINDOWS - "R:" - #else -@@ -241,6 +245,9 @@ static void parse_commandline(int argc, - { - switch (ch) - { -+ case 'f': -+ CONFIG_FOREGROUND = ZBX_RUN_FOREGROUND; -+ break; - case 'c': - CONFIG_FILE = strdup(zbx_optarg); - break; -@@ -944,7 +951,7 @@ int main(int argc, char **argv) - break; - } - -- START_MAIN_ZABBIX_ENTRY(CONFIG_ALLOW_ROOT, CONFIG_USER); -+ START_MAIN_ZABBIX_ENTRY(CONFIG_ALLOW_ROOT, CONFIG_USER, CONFIG_FOREGROUND); - - exit(EXIT_SUCCESS); - } ---- a/src/zabbix_proxy/proxy.c -+++ b/src/zabbix_proxy/proxy.c -@@ -60,6 +60,7 @@ const char usage_message[] = "[-hV] [-c - - const char *help_message[] = { - "Options:", -+ " -f --foreground Run in foreground don't fork", - " -c --config Absolute path to the configuration file", - " -R --runtime-control