Sha256: 475b0f7e60e96e488aac55dfd08a313d8d8557919ceb2e85ef25a30acbc9f503

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

#!/bin/sh
set -x
dir="$(cd "$(dirname $0)" && /bin/pwd)"
PATH="$dir/../bin:$PATH"
export RUBYLIB="$dir/../example:$dir/../lib"
asir="asir verbose=9 config_rb=$dir/config/asir_config.rb" 
args="$*"
args="${args:-ALL}"
# set -e

#############################

case "$args"
in
  *beanstalk*|*ALL*)

$asir start beanstalk conduit
sleep 1
if $asir alive beanstalk conduit; then
  echo "beanstalk conduit alive"
fi
$asir start beanstalk worker
sleep 1
$asir pid beanstalk worker
if $asir alive beanstalk worker; then
  echo "resque worker alive"
fi
# exit 0

ruby "$dir/asir_control_client_beanstalk.rb"
sleep 1
$asir stop beanstalk worker
sleep 1
$asir stop beanstalk conduit

;;
esac

#############################

exit 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asir_beanstalk-1.2.8 example/asir_control.sh
asir_beanstalk-1.2.7 example/asir_control.sh
asir_beanstalk-1.2.6 example/asir_control.sh
asir_beanstalk-1.2.5 example/asir_control.sh