added ebuild for gitlab 8.9.4 and also updated init-file to enable restarting of sidekiq.
the tag 8.9.4 is not yet publicly available, so repoman fails for now
This commit is contained in:
		
							parent
							
								
									34d9c638c5
								
							
						
					
					
						commit
						889f5ecbf1
					
				
					 2 changed files with 424 additions and 0 deletions
				
			
		|  | @ -1,7 +1,10 @@ | |||
| #!/sbin/runscript | ||||
| 
 | ||||
| extra_started_commands="restartsidekiq" | ||||
| 
 | ||||
| name="GitLab" | ||||
| description="GitLab on Unicorns" | ||||
| description_restartsidekiq="Restarts Sidekiq only" | ||||
| 
 | ||||
| : ${gitlab_user:=@USER@} | ||||
| : ${gitlab_base:="@GITLAB_BASE@"} | ||||
|  | @ -95,3 +98,25 @@ stop() { | |||
| 		--exec ${server_command} | ||||
| 	eend $? | ||||
| } | ||||
| 
 | ||||
| restartsidekiq() { | ||||
| 	ebegin "Restarting ${name} - Sidekiq: Stopping" | ||||
| 	start-stop-daemon --stop \ | ||||
| 		--pidfile=${sidekiq_pidfile} \ | ||||
| 		--exec ${sidekiq_command} \ | ||||
| 		--progress \ | ||||
| 		--retry 180 | ||||
| 
 | ||||
| 	eend $? | ||||
| 
 | ||||
| 	ebegin "Starting ${name} - Sidekiq" | ||||
| 
 | ||||
| 	start-stop-daemon --start \ | ||||
| 		--background --quiet \ | ||||
| 		--chdir "${gitlab_base}" \ | ||||
| 		--user=${gitlab_user} \ | ||||
| 		--pidfile="${sidekiq_pidfile}" \ | ||||
| 		--env RAILS_ENV=${rails_env} \ | ||||
| 		--exec ${sidekiq_command} -- ${sidekiq_command_args} | ||||
| 	eend $? | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue