Sha256: 845ace464bff7e337fcaa62090235b3554b729a25209b457ac5e1d3468a87c0b

Contents?: true

Size: 523 Bytes

Versions: 13

Compression:

Stored size: 523 Bytes

Contents

#!/bin/bash  

# Start Gearmand
echo ' + Starting Gearmand'
gearmand --daemon --pidfile=/tmp/gearmand.pid

# Start the client and the worker(s)
echo ' + Starting calculus_worker.rb'
ruby calculus_worker.rb & 

sleep 3

echo ' + Starting calculus_client.rb'
ruby calculus_client.rb 

echo ' +++ Example finished +++ '

# Stop Gearmand
echo ' - Stopping Gearmand'
kill -9 `cat /tmp/gearmand.pid`

# Stop the workers
echo ' - Stopping calculus_worker.rb'
kill -9 `ps ax|grep calculus_worker|grep ruby|awk -F' ' '{print $1}'`

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
gearman-ruby-3.0.8 examples/gearman_environment.sh
xing-gearman-ruby-1.1.0 examples/gearman_environment.sh
xing-gearman-ruby-1.2.0 examples/gearman_environment.sh
xing-gearman-ruby-1.3.0 examples/gearman_environment.sh
xing-gearman-ruby-1.3.1 examples/gearman_environment.sh
gearman-ruby-3.0.7 examples/gearman_environment.sh
gearman-ruby-3.0.6 examples/gearman_environment.sh
gearman-ruby-3.0.4 examples/gearman_environment.sh
gearman-ruby-3.0.3 examples/gearman_environment.sh
gearman-ruby-3.0.2 examples/gearman_environment.sh
gearman-ruby-3.0.1 examples/gearman_environment.sh
evented-gearman-ruby-1.0.0 examples/gearman_environment.sh
gearman-ruby-2.0.0 examples/gearman_environment.sh