From 369e7859a2859e5883924eef87b375a9afabe8d8 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 14 Jul 2021 16:03:41 +0200 Subject: [PATCH] PATCH 1: Change the Systemd service name from "garb" to "garbd" --- galera.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/galera.spec b/galera.spec index 24bdd4c..fbc9548 100644 --- a/galera.spec +++ b/galera.spec @@ -61,6 +61,16 @@ cmake -B %_vpath_builddir -LAH %install %cmake_install +# PATCH 1: +# Change the Systemd service name from "garb" to "garbd" +# +# The Galera upstream uses name "garb" for the service while providing "garbd" alias +# Fedora downstream packaging historically used "garbd" name for the service. +# +# Let's stick with the Fedora legacy naming, AND provide an alias to the Galera upstream name +mv %{buildroot}/usr/lib/systemd/system/garb.service %{buildroot}/usr/lib/systemd/system/garbd.service +sed -i 's/Alias=garbd.service/Alias=garb.service/g' %{buildroot}/usr/lib/systemd/system/garbd.service + %post /sbin/ldconfig @@ -86,8 +96,7 @@ cmake -B %_vpath_builddir -LAH %{_mandir}/man8/garbd.8* -#%{_unitdir}/garbd.service -%{_unitdir}/garb.service +%{_unitdir}/garbd.service %{_libdir}/galera/libgalera_smm.so