diff options
Diffstat (limited to 'railties/lib/commands/process/spawner.rb')
-rw-r--r-- | railties/lib/commands/process/spawner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/process/spawner.rb b/railties/lib/commands/process/spawner.rb index 76d12dddbf..8b5d56b324 100644 --- a/railties/lib/commands/process/spawner.rb +++ b/railties/lib/commands/process/spawner.rb @@ -14,7 +14,7 @@ def daemonize #:nodoc: end class Spawner - def self.record_pid(name = "spawner", id = Process.pid) + def self.record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid) FileUtils.mkdir_p(OPTIONS[:pids]) File.open(File.expand_path(OPTIONS[:pids] + "/#{name}.pid"), "w+") { |f| f.write(id) } end |