Skip to content

Commit 1ad4060

Browse files
committed
Set worker process title
1 parent 06ee2a0 commit 1ad4060

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

workers/event_catcher/event_catcher.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,14 @@ def decrypt_env_vars
179179
YAML.load(output)
180180
end
181181

182+
def setproctitle
183+
proc_title = "MIQ: Vmware::InfraManager::EventCatcher guid: #{ENV["GUID"]}"
184+
Process.setproctitle(proc_title)
185+
end
186+
182187
def main(args)
188+
setproctitle
189+
183190
event_catcher = EventCatcher.new(*args.values_at(:ems_id, :hostname, :username, :password, :port, :messaging_host, :messaging_port))
184191
event_catcher.run!
185192
end

0 commit comments

Comments
 (0)