From cc436c9f1a2708d989578ea21a2c5e960fca484b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 25 Aug 2020 17:04:56 +0200 Subject: [PATCH] Don't depends on systemd for proxy-sqlite on el6 --- zabbix.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zabbix.spec b/zabbix.spec index 1b2ebe2..934b8d5 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -198,9 +198,16 @@ Zabbix proxy with PostgreSQL database support. Summary: Zabbix proxy for SQLite3 database Group: Applications/Internet Requires: fping +%if 0%{?rhel} >= 7 Requires(post): systemd Requires(preun): systemd Requires(postun): systemd +%else +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service +Requires(postun): /sbin/service +%endif Provides: zabbix-proxy = %{version}-%{release} Provides: zabbix-proxy-implementation = %{version}-%{release} Obsoletes: zabbix