summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-05-04 16:22:58 +0000
committerDouwe Maan <douwe@gitlab.com>2016-05-04 16:22:58 +0000
commitb403d40fdb753c629b1f4986d7868b641a34c9bd (patch)
tree419d3d44cf0fa40fb2caa4174eb050b9ce856fa0
parent1a9d50597262a31f03dc66584f05d66b905d9d59 (diff)
parent8a6776caa9f45c4c16347ad662bd83519032687d (diff)
downloadgitlab-ce-b403d40fdb753c629b1f4986d7868b641a34c9bd.tar.gz
Merge branch 'exec-in-launch-wrappers' into 'master'
Use 'exec' in Unicorn and Sidekiq launch scripts When running Unicorn or Sidekiq in the foreground this change removes an intermediate /bin/sh process. This makes process supervision in the GitLab Development Kit more reliable. This change does not affect Omnibus-GitLab (because there we do not use these launch scripts). Installations from source do use the launch scripts but for the standard GitLab init script this change will not make a difference. Custom installations using Upstart or Systemd may be affected however, because under certain configurations these systems count exactly how many forks happen during process startup, and we are reducing that number by one here. Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/116 See merge request !3964
-rwxr-xr-xbin/background_jobs2
-rwxr-xr-xbin/web4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/background_jobs b/bin/background_jobs
index 1f67d732949..25a578a1c49 100755
--- a/bin/background_jobs
+++ b/bin/background_jobs
@@ -37,7 +37,7 @@ start_no_deamonize()
start_sidekiq()
{
- bundle exec sidekiq -q post_receive -q mailers -q archive_repo -q system_hook -q project_web_hook -q gitlab_shell -q incoming_email -q runner -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile "$@"
+ exec bundle exec sidekiq -q post_receive -q mailers -q archive_repo -q system_hook -q project_web_hook -q gitlab_shell -q incoming_email -q runner -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile "$@"
}
load_ok()
diff --git a/bin/web b/bin/web
index 03fe7a6354b..ecd0bbd10b0 100755
--- a/bin/web
+++ b/bin/web
@@ -19,12 +19,12 @@ get_unicorn_pid()
start()
{
- $unicorn_cmd -D
+ exec $unicorn_cmd -D
}
start_foreground()
{
- $unicorn_cmd
+ exec $unicorn_cmd
}
stop()