diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-28 00:00:50 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-28 00:00:50 +0000 |
commit | 7a8ed3bbbf44b273622be0e324a616065f5656a8 (patch) | |
tree | 02ef3b281ef8470a43f958062582b03387e68d90 /railties/lib/tasks | |
parent | 1eade4137a96a55ed699d49c18fe177224363e7d (diff) | |
download | rails-7a8ed3bbbf44b273622be0e324a616065f5656a8.tar.gz rails-7a8ed3bbbf44b273622be0e324a616065f5656a8.tar.bz2 rails-7a8ed3bbbf44b273622be0e324a616065f5656a8.zip |
Added pid file usage to script/process/spawner and script/process/reaper along with a directive in default config/lighttpd.conf file to record the pid. They will all save their pid file in tmp/pids [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks')
-rw-r--r-- | railties/lib/tasks/tmp.rake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/railties/lib/tasks/tmp.rake b/railties/lib/tasks/tmp.rake index 6ba5b11450..b191039d63 100644 --- a/railties/lib/tasks/tmp.rake +++ b/railties/lib/tasks/tmp.rake @@ -4,7 +4,7 @@ namespace :tmp do desc "Creates tmp directories for sessions, cache, and sockets" task :create do - FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets )) + FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids )) end namespace :sessions do @@ -27,4 +27,11 @@ namespace :tmp do FileUtils.rm(Dir['tmp/sockets/[^.]*']) end end + + namespace :pids do + desc "Clears all files in tmp/pids" + task :clear do + FileUtils.rm(Dir['tmp/pids/[^.]*']) + end + end end
\ No newline at end of file |