Commit b1f75b82 authored by Robert Dietrich's avatar Robert Dietrich

fixed prolog locking

parent aac164e2
......@@ -47,11 +47,9 @@ fi
#trap "rm -f ${LOCAL_STORE}/pika_collectd_lock" 0 #make sure that the lock is removed on exit
mkdir $lock_collectd 2> /dev/null
if [ $? == 0 ]; then
if [ $? == 0 ] || [ "$have_setup_lock" = true ]; then
trap "rm -rf ${lock_collectd}" QUIT TERM EXIT INT #make sure that the lock is removed on exit
# enter locked region (via flock)
# determine number of PIKA collectd processes
active_procs=`ps -eo pid,cmd | grep -v grep | grep -c "$DAEMON"`
echo -e "\nActive PIKA collectd processes: ${active_procs}" >> $DEBUG_PATH 2>&1
......
......@@ -55,6 +55,7 @@ fi
##### (5) pika package installation
# used for install and collectd start
lock_collectd=${LOCAL_STORE}/pika_collectd_setup.lock
have_setup_lock=false
source ${PIKA_ROOT}/job_control/slurm/taurus/pika_install_prolog_include.sh >> $DEBUG_PATH 2>&1
##### (6) pika presetup
......
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