Restart job
This commit is contained in:
		
							parent
							
								
									7a6d30ad62
								
							
						
					
					
						commit
						dfd2d82efb
					
				|  | @ -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 | ||||||
|  | @ -10,6 +10,12 @@ nccu_daily_ldap_sync: | ||||||
|   args: |   args: | ||||||
|   description: Sync NCCU middle site with Orbit for LDAP data |   description: Sync NCCU middle site with Orbit for LDAP data | ||||||
| 
 | 
 | ||||||
|  | nccu_daily_restart: | ||||||
|  |   cron: * * */3 * * * | ||||||
|  |   class: RestartServer | ||||||
|  |   args: | ||||||
|  |   description: Restart NCCU  site | ||||||
|  | 
 | ||||||
| nccu_claender_sync: | nccu_claender_sync: | ||||||
|   cron: * * [0,12] * * * |   cron: * * [0,12] * * * | ||||||
|   class: NccuCalendar |   class: NccuCalendar | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue