Commit 72b5f490 authored by Robert Dietrich's avatar Robert Dietrich

kill collectd before removing the sources (during package install)

parent b243e2ef
......@@ -47,11 +47,7 @@ fi
##### (5) pika package installation
# install pika python and likwid in /opt/pika if it is not already there
if [ ! -d "${PIKA_INSTALL_PATH}" ]; then
echo -e "\nUnpack PIKA software stack to ${PIKA_INSTALL_PATH}" >> $DEBUG_PATH 2>&1
# delete old installation if it is still there
if [ -d "/opt/pika" ]; then
rm -rf /opt/pika
fi
echo -e "\nInstall/Replace PIKA software stack to ${PIKA_INSTALL_PATH}" >> $DEBUG_PATH 2>&1
# check if an old collectd daemon is still running, if so kill it
echo -e "\nCheck if an old pika collectd is still running" >> $DEBUG_PATH 2>&1
......@@ -62,8 +58,13 @@ if [ ! -d "${PIKA_INSTALL_PATH}" ]; then
if [ -z "$COLLECTD_PID" ]; then
echo -e "\ncollectd is not running." >> $DEBUG_PATH 2>&1
else
echo -e "\nkill -TERM $COLLECTD_PID" >> $DEBUG_PATH 2>&1
kill -TERM $COLLECTD_PID
echo -e "\nkill -KILL $COLLECTD_PID" >> $DEBUG_PATH 2>&1
kill -KILL $COLLECTD_PID
fi
# delete old installation if it is still there
if [ -d "/opt/pika" ]; then
rm -rf /opt/pika
fi
# temporary: delete old prope installations
......@@ -114,4 +115,4 @@ source ${PIKA_ROOT}/job_control/slurm/taurus/pika_collectd_prolog_include.sh >>
source ${PIKA_ROOT}/job_control/slurm/taurus/pika_save_metadata_prolog_include.sh >> $DEBUG_PATH 2>&1
echo -e "\nProlog finished sucessfully!" >> $DEBUG_PATH 2>&1
exit 0
\ No newline at end of file
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment