Hi all
I've taking over the managing of a Rails system (v. 1.2.3) that has been
writing to production.log for several years now, and the log had grown to 16
Gb, taking up half the server disc space.
I removed the logfile, doing:
$sudo mv production.log production.log.old
$sudo touch production.log
$sudo chmod 666 production.log
$sudo rm production.log.old
Everything works fine except my new log file does not get written to. Is there
any way to restart logging without restarting Rails? The server is running
several Ruby components as well, defined in /lib, and they also write to the
production log.
Will I need to restart the Ruby components - or is it sufficient to kill the
Rails processes and restart them?
I've enclosed a section of ps aux output
root 23654 0.0 1.0 26952 21984 ? S Apr26 24:51
phone_tcp_server.rb_monitor
root 23655 0.3 7.2 155376 149668 ? S Apr26 995:25
phone_tcp_server.rb
root 23675 0.0 1.0 27212 22140 ? S Apr26 25:28
ast_ami_amq.rb_monitor
root 23677 0.2 1.0 27220 21760 ? S Apr26 688:09 ast_ami_amq.rb
root 23813 0.0 0.4 12864 9452 ? S Apr26 0:52 ruby
queuepause_server.rb
root 9279 0.0 1.9 45948 40552 ? S Nov21 7:19
ruby /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails
start -d -e
production -p 8000 -a 127.0.0.1 -P log/mongrel.8000.pid -c
/home/rails_apps/netklinik.dk/current
-m/home/rails_apps/netklinik.dk/current/config/mime_types.yml
root 9317 0.0 2.0 47124 41696 ? S Nov21 7:25
ruby /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails
start -d -e
production -p 8001 -a 127.0.0.1 -P log/mongrel.8001.pid -c
/home/rails_apps/netklinik.dk/current
-m/home/rails_apps/netklinik.dk/current/config/mime_types.yml
Any help and guidance would be greatly appreciated!
Best regards
Binni
ITAnet
Kirkestien 20
9230 Svenstrup
Telefon: 3020 0868
Email: [email protected]
WWW: http://www.itanet.nu
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.