www-apps/gitlab-ce:
added ebuild for version 8.9.3 and updated init script. now, individual restart of sidekiq is possible Package-Manager: portage-2.2.28
This commit is contained in:
parent
34d9c638c5
commit
b24dc4420f
4 changed files with 435 additions and 2 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