[refs #2161] Change nginx restart method into Download model

This commit is contained in:
konstantin.grabar 2011-10-31 13:53:24 +04:00
parent 284aa6f3ca
commit 0c0171bef7
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ class Download < ActiveRecord::Base
class << self
def rotate_nginx_log
system("mv #{ APP_CONFIG['nginx_log'] } #{ PREV_LOG_FILE }")
system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`")
#system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`")
system("touch #{ RAILS_ROOT }/tmp/restart.txt")
end
def parse_nginx_log