Skip to content

Commit

Permalink
⬆️ Update LiveHelperChat
Browse files Browse the repository at this point in the history
  • Loading branch information
anarion80 committed Sep 4, 2024
1 parent 6a8843e commit ec12543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions roles/livehelperchat/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ livehelperchat_cobrowse_memory: 1g
# docker

livehelperchat_db_container_name: livehelperchat-db
livehelperchat_db_image_name: mysql
livehelperchat_db_image_version: 5
livehelperchat_db_image_name: mariadb
livehelperchat_db_image_version: latest
livehelperchat_redis_container_name: livehelperchat-redis
livehelperchat_redis_image_name: redis
livehelperchat_redis_image_version: alpine
Expand Down
7 changes: 4 additions & 3 deletions roles/livehelperchat/templates/scripts/resque.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ fileLock="/code/cache/runresque.lock"

if [ -f $fileLock ];
then
kill -9 $(ps aux | grep "/usr/local/bin/php resque.php" | awk '{print $2}')
kill -9 $(ps aux | grep "[0-9] resque-1.2: *" | awk '{print $2}')
cd /scripts/ && ./phpresque.sh
cd /scripts/ && ./phpresque.sh &
rm -f $fileLock;
else
PIDS=`ps aux | grep '[0-9] resque-1.2: *'`
if [ -z "$PIDS" ]; then
echo "Starting resque"
cd /scripts/ && ./phpresque.sh
cd /scripts/ && ./phpresque.sh &
fi
fi

fi
fi

0 comments on commit ec12543

Please sign in to comment.