Skip to content
Snippets Groups Projects
Select Git revision
  • c36bdf0779f64a00cac9377ee670b78d28b0c20f
  • develop default protected
  • issue/70-hotfix-error-collection-resource-deleted
  • issue-68/streak-high_streak-last_action_at
  • issue/65-govbr
  • issue/54-curator-queue
  • issue/58-testar-s3
  • master protected
  • pre-submission
  • pre-languages
  • video-cache
  • tag-clustering-task
  • pre-api
  • orientdb
14 results

sidekiq.sh

Blame
  • Forked from PortalMEC / portalmec
    2387 commits behind the upstream repository.
    user avatar
    Mateus Rambo Strey authored
    300acfc0
    History
    sidekiq.sh 472 B
    #!/bin/bash
    source /home/.rvm/scripts/rvm
    
    export PUMA_APP_DIR=/portalmec
    
    source $PUMA_APP_DIR/config/env_vars.sh 2>/dev/null
    
    option="${1}"
    
    case ${option} in
       start)
          cd $PUMA_APP_DIR
          exec bundle exec sidekiq
          ;;
       stop)
           cd $PUMA_APP_DIR
           bundle exec sidekiqctl stop shared/pids/sidekiq.pid
          ;;
       *)
          echo "`basename ${0}`:usage: [start] | [stop]"
          exit 1 # Command to come out of the program with status 1
          ;;
    esac