From 5f17507cd6edec82e34fc265d5da1aa8799b036f Mon Sep 17 00:00:00 2001 From: Sam Kottler Date: Tue, 27 May 2014 04:01:30 -0400 Subject: [PATCH] Start with sysvinit installation logic --- icinga2.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index 035a3f8ac..5813328de 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -435,7 +435,10 @@ exit 0 %files bin %defattr(-,root,root,-) %doc COPYING COPYING.Exceptions README NEWS AUTHORS ChangeLog +%if 0%{?el5}%{?el6}%{?opensuse_version} %attr(755,-,-) %{_sysconfdir}/init.d/%{name} +%else +%attr(755,-,0) %{_unitdir}/%{name}.service %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name} %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d/hosts