Skip to content

Commit

Permalink
Added the $0 variable to set the process name
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed Jun 4, 2009
1 parent 6ee75f2 commit a93dc3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/queue_stick/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ def initialize(argv, io_stream = STDOUT)
def run!(worker_klass)
@io.puts "================================="
@io.puts "Booting up a queue_stick worker..."


$0 = "queue_stick: #{worker_klass}"
initialize_workers!(worker_klass)
start_web_server! unless @options.disable_web_server
unless @options.disable_web_server
$0 += " (on port #{@options.port})"
start_web_server!
end
start_workers!
end

Expand Down

0 comments on commit a93dc3c

Please sign in to comment.