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