Skip to content
Snippets Groups Projects
Commit 4afd04a7 authored by Mark Grondona's avatar Mark Grondona
Browse files

o do not stop/start slurm services at an upgrade

parent 8e3ab353
No related branches found
No related tags found
No related merge requests found
...@@ -23,17 +23,16 @@ Requires: slurm ...@@ -23,17 +23,16 @@ Requires: slurm
%description %description
The common slurm package, which includes the base libraries, client SLURM is a simple resource management system which manages
utilitues for SLURM, slurmd, and slurmctld. Slurmd is the compute node exclusive access to a set of compute resources and distrubutes
daemon of Slurm. It monitors all tasks running on the compute node , work to those resources. Included in this package are the SLURM
accepts work (tasks), launches tasks, and kills running tasks upon controller, compute node daemon, and all clients necessary to
request. Slurmctld is the central management daemon of Slurm. It access SLURM functionality.
monitors all other Slurm daemons and resources, accepts work (jobs),
and allocates resources to those jobs.
%description devel %description devel
Development package for SLURM. This package includes the header files Development package for SLURM. This package includes the header files
and static libraries. and static libraries for the SLURM API.
%prep %prep
...@@ -73,6 +72,7 @@ rm -rf $RPM_BUILD_ROOT ...@@ -73,6 +72,7 @@ rm -rf $RPM_BUILD_ROOT
%doc README %doc README
%doc DISCLAIMER %doc DISCLAIMER
%doc COPYING %doc COPYING
%doc etc/slurm.conf.example
%{_bindir}/* %{_bindir}/*
%{_sbindir}/* %{_sbindir}/*
%{_libdir}/*.so* %{_libdir}/*.so*
...@@ -89,28 +89,28 @@ rm -rf $RPM_BUILD_ROOT ...@@ -89,28 +89,28 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libslurm.la %{_libdir}/libslurm.la
%{_mandir}/man3/* %{_mandir}/man3/*
%pre #%pre
if [ -x /etc/rc.d/init.d/slurm ]; then #if [ -x /etc/rc.d/init.d/slurm ]; then
if /etc/rc.d/init.d/slurm status | grep running >/dev/null 2>&1; then # if /etc/rc.d/init.d/slurm status | grep running >/dev/null 2>&1; then
/etc/rc.d/init.d/slurm stop # /etc/rc.d/init.d/slurm stop
fi # fi
fi #fi
%post %post
/sbin/ldconfig %{_libdir} /sbin/ldconfig %{_libdir}
if [ -x /etc/rc.d/init.d/slurm ]; then #if [ -x /etc/rc.d/init.d/slurm ]; then
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del slurm # [ -x /sbin/chkconfig ] && /sbin/chkconfig --del slurm
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add slurm # [ -x /sbin/chkconfig ] && /sbin/chkconfig --add slurm
if ! /etc/rc.d/init.d/slurm status | grep running >/dev/null 2>&1; then # if ! /etc/rc.d/init.d/slurm status | grep -q running; then
/etc/rc.d/init.d/slurm start # /etc/rc.d/init.d/slurm start
fi # fi
fi #fi
%preun %preun
if [ "$1" = 0 ]; then if [ "$1" = 0 ]; then
if [ -x /etc/rc.d/init.d/slurm ]; then if [ -x /etc/rc.d/init.d/slurm ]; then
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del slurm [ -x /sbin/chkconfig ] && /sbin/chkconfig --del slurm
if /etc/rc.d/init.d/slurm status | grep running >/dev/null 2>&1; then if /etc/rc.d/init.d/slurm status | grep -q running; then
/etc/rc.d/init.d/slurm stop /etc/rc.d/init.d/slurm stop
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment