Sha256: 1ad8234b5fef70ff4a6f4eadcbb625340f143b81414b95a5500a410ac3b098d5

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 Bytes

Contents

#!/bin/bash

bundle check || bundle install
bundle config git.allow_insecure true

# Create directory if not exists
if [ ! -d ./tmp/pids ]; then
    mkdir ./tmp/pids
fi

# If file exist stop sidekiq
if [ -f ./tmp/pids/sidekiq.pid ]; then
{
    echo 'Stopping sidekiq'
    bundle exec sidekiqctl stop tmp/pids/sidekiq.pid

    echo 'Stopped sidekiq'
    rm -rf ./tmp/pids/sidekiq.pid
} || {
    echo 'Error occurred when stopping sidekiq'
}
fi

echo 'Starting sidekiq'
bundle exec sidekiq -C config/sidekiq.yml

echo 'Started sidekiq'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/docker/start-sidekiq.sh.erb
cybele-2.3.1 templates/docker/start-sidekiq.sh.erb
cybele-2.2.0 templates/docker/start-sidekiq.sh.erb
cybele-2.1.0 templates/docker/start-sidekiq.sh.erb
cybele-2.0.0 templates/docker/start-sidekiq.sh.erb