From 5183846184f85d3193380db265ca206389580148 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 25 Aug 2020 17:16:42 +0200 Subject: [PATCH] Provide proxy init script on el6 --- zabbix.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zabbix.spec b/zabbix.spec index 3a7c7d1..7707a5e 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -709,6 +709,7 @@ install -Dm 0644 -p %{SOURCE12} $RPM_BUILD_ROOT%{_unitdir}/zabbix-proxy.service install -Dm 0644 -p %{SOURCE13} $RPM_BUILD_ROOT%{_unitdir}/zabbix-java-gateway.service %else install -Dm 0755 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-agent +install -Dm 0755 -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-proxy %endif %if 0%{?build_agent2} @@ -1119,6 +1120,8 @@ fi %if 0%{?rhel} >= 7 %{_unitdir}/zabbix-proxy.service %{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf +%else +%{_sysconfdir}/init.d/zabbix-agent %endif %{_sbindir}/zabbix_proxy_mysql %endif @@ -1153,6 +1156,8 @@ fi %if 0%{?rhel} >= 7 %{_unitdir}/zabbix-proxy.service %{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf +%else +%{_sysconfdir}/init.d/zabbix-agent %endif %{_sbindir}/zabbix_proxy_sqlite3 %endif