diff --git a/slurm.changes b/slurm.changes index 61c90ca..d51419a 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 30 18:52:44 UTC 2023 - Egbert Eich + +- Add missing service file for slurmrestd (boo#1217711). + ------------------------------------------------------------------- Tue Nov 28 14:14:28 UTC 2023 - Egbert Eich diff --git a/slurm.spec b/slurm.spec index 632196f..3c6de37 100644 --- a/slurm.spec +++ b/slurm.spec @@ -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