Restart job

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-05-11 16:56:32 +08:00
1 parent 0a34f0277e
commit 82d1d3fed8
2 files changed
+14

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
class RestartServer
@queue = :high
def self.perform()
CronMail.time_check("Going to restarting Orbit").deliver
%x[touch #{Rails.root}/tmp/restart]
end
end