Start with sysvinit installation logic

This commit is contained in:
Sam Kottler 2014-05-27 04:01:30 -04:00 committed by Gerd von Egidy
parent 4568f68f90
commit 5f17507cd6
1 changed files with 3 additions and 0 deletions

View File

@ -435,7 +435,10 @@ exit 0
%files bin %files bin
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING COPYING.Exceptions README NEWS AUTHORS ChangeLog %doc COPYING COPYING.Exceptions README NEWS AUTHORS ChangeLog
%if 0%{?el5}%{?el6}%{?opensuse_version}
%attr(755,-,-) %{_sysconfdir}/init.d/%{name} %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}
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d/hosts %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d/hosts