PATCH 1: Change the Systemd service name from "garb" to "garbd"

Related: #1982642
This commit is contained in:
Michal Schorm 2021-07-14 16:03:41 +02:00
parent 13596c1e89
commit f701088ddb
1 changed files with 11 additions and 2 deletions

View File

@ -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