Fix the dataminer algorithms updater script: it searched the lock file in the wrong place.

This commit is contained in:
Andrea Dell'Amico 2017-07-25 15:59:47 +02:00
parent 99b4bfb8ab
commit 0ea789571b
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_script' ]
- name: Cron job that updates the algorithms repository and adds the missing algorithms configurations
cron: name="SVN update the algorithms repository" minute="*/10" job="/usr/local/bin/algorithms-updater" user='{{ smartgears_user }}' state=present
cron: name="SVN update the algorithms repository" minute="*/10" job="/usr/local/bin/algorithms-updater > {{ smartgears_instance_path }}/wps_algorithms_install_log/algorithms_updater_cron.log 2>&1" user='{{ smartgears_user }}' state=present
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms' ]
- name: Create a directory where to install the gebco_08.nc data file

View File

@ -36,7 +36,7 @@ function check_lock_file() {
if [ -f $LOCK_FILE ] ; then
set +o pipefail
set +e
RUNNING_JOB=$( ps auwwx | grep `cat /tmp/io` | grep -v grep )
RUNNING_JOB=$( ps auwwx | grep `cat $LOCK_FILE` | grep -v grep )
RUNNING_JOB_RETVAL=$?
if [ $RUNNING_JOB_RETVAL -eq 0 ] ; then
logger 'algorithms-updater: another job still running, exiting.'