Class: Unicorn::HttpServer
- Inherits:
-
Object
- Object
- Unicorn::HttpServer
- Defined in:
- lib/unicorn-lockdown.rb
Instance Method Summary collapse
-
#proc_name(tag) ⇒ Object
Override the process name for the unicorn processes, both master and worker.
-
#request_filename(pid) ⇒ Object
The file name in which to store request information.
Instance Method Details
#proc_name(tag) ⇒ Object
Override the process name for the unicorn processes, both master and worker. This gives all applications a consistent prefix, which can be used to pkill processes by name instead of using pidfiles.
28 29 30 31 |
# File 'lib/unicorn-lockdown.rb', line 28 def proc_name(tag) ctx = self.class::START_CTX $0 = ["unicorn-#{Unicorn.app_name}-#{tag}"].concat(ctx[:argv]).join(' ') end |