[refs #2161] Change nginx restart method into Download model
This commit is contained in:
parent
284aa6f3ca
commit
0c0171bef7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue