# HG changeset patch
# User Kazunori INOUE <kazunori.inoue3@gmail.com>
# Date 1403073712 -32400
# Node ID 7413cd3fac974274509b08c554fe2202b828d376
# Parent  45e21bc9795d70b86ecc3825b91ef6424db178d8
Build: Correctly locate the logd systemd service file

diff -r 45e21bc9795d -r 7413cd3fac97 cluster-glue-fedora.spec
--- a/cluster-glue-fedora.spec	Thu Jun 12 12:28:59 2014 +0200
+++ b/cluster-glue-fedora.spec	Wed Jun 18 15:41:52 2014 +0900
@@ -112,7 +112,11 @@
 %files
 %defattr(-,root,root)
 %dir %{_datadir}/%{name}
+%if %{defined _unitdir}
+%{_unitdir}/logd.service
+%else
 %{_sysconfdir}/init.d/logd
+%endif
 %{_datadir}/%{name}/ha_cf_support.sh
 %{_datadir}/%{name}/openais_conf_support.sh
 %{_datadir}/%{name}/utillib.sh
