summaryrefslogtreecommitdiffstats
path: root/unit.spec
diff options
context:
space:
mode:
Diffstat (limited to 'unit.spec')
-rw-r--r--unit.spec10
1 files changed, 6 insertions, 4 deletions
diff --git a/unit.spec b/unit.spec
index 908d126..fa91758 100644
--- a/unit.spec
+++ b/unit.spec
@@ -28,7 +28,6 @@ Source1: unit.service
Source2: unit.init
Source3: unit.sysconf
-
# Use system crypto policy
Patch0: https://github.com/nginx/unit/pull/215.patch
@@ -39,7 +38,10 @@ Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
-Requires: initscripts >= 8.36
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
+Requires(postun): initscripts
%endif
Provides: nginx-unit = %{version}-%{release}
@@ -119,7 +121,7 @@ install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d
%else
-install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
+install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/unitd
install -p -D -m 0755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
%endif
@@ -177,7 +179,7 @@ fi
%dir %attr(0755,root,root) %ghost /run/unit
%else
-%config(noreplace) %{_sysconfdir}/sysconfig/unit
+%config(noreplace) %{_sysconfdir}/sysconfig/unitd
%dir %attr(0755,root,root) %{_localstatedir}/run/unit
%{_initrddir}/unit
%endif