Accepting request 1130096 from home:eeich:branches:network:cluster

- Add missing service file for slurmrestd (boo#1217711).

OBS-URL: https://build.opensuse.org/request/show/1130096
OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=280
This commit is contained in:
Egbert Eich 2023-11-30 19:27:08 +00:00 committed by Git OBS Bridge
parent 5a1d72f62c
commit bbe01bb79f
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 30 18:52:44 UTC 2023 - Egbert Eich <eich@suse.com>
- Add missing service file for slurmrestd (boo#1217711).
-------------------------------------------------------------------
Tue Nov 28 14:14:28 UTC 2023 - Egbert Eich <eich@suse.com>

View File

@ -681,6 +681,10 @@ install -p -m644 etc/slurmd.service etc/slurmdbd.service etc/slurmctld.service %
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmd
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmdbd
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmctld
%if 0%{?build_slurmrestd}
install -p -m644 etc/slurmrestd.service %{buildroot}%{_unitdir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmrestd
%endif
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}/
cat <<-EOF > %{buildroot}/%{_tmpfilesdir}/%{pname}.conf
# Create a directory with permissions 0700 owned by user slurm, group slurm
@ -990,6 +994,18 @@ rm -f %{buildroot}%{_libdir}/slurm/rest_auth_*.so
%postun node
%service_del_postun_without_restart slurmd.service
%pre rest
%service_add_pre slurmrestd.service
%post rest
%service_add_post slurmrestd.service
%preun rest
%service_del_preun slurmrestd.service
%postun rest
%service_add_pre slurmrestd.service
%pre config %{?have_sysuser:-f %{pname}.pre}
%if 0%{!?have_sysuser:1}
getent group %slurm_g >/dev/null || groupadd -r %slurm_g
@ -1042,6 +1058,9 @@ rm -rf /srv/slurm-testsuite/src /srv/slurm-testsuite/testsuite \
%posttrans slurmdbd
%_restart_on_update slurmdbd
%posttrans rest
%_restart_on_update slurmrestd
%if 0%{?sle_version} > 120200 || 0%{?suse_version} > 1320
%define my_license %license
%else
@ -1306,6 +1325,8 @@ rm -rf /srv/slurm-testsuite/src /srv/slurm-testsuite/testsuite \
%if 0%{?build_slurmrestd}
%files rest
%{_sbindir}/slurmrestd
%{_sbindir}/rcslurmrestd
%{_unitdir}/slurmrestd.service
%{_mandir}/man8/slurmrestd.*
%{_libdir}/slurm/openapi_dbv0_0_39.so
%{_libdir}/slurm/openapi_v0_0_39.so