summaryrefslogtreecommitdiff
path: root/bin/web
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-28 12:11:08 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-28 12:11:08 +0200
commit8a6776caa9f45c4c16347ad662bd83519032687d (patch)
treee8317c1fa94ed9047a9acc531b1004f0b75d6290 /bin/web
parentf127edd012bd8b6f76ac67d69aadbd7d4837258f (diff)
downloadgitlab-ce-8a6776caa9f45c4c16347ad662bd83519032687d.tar.gz
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.
Diffstat (limited to 'bin/web')
-rwxr-xr-xbin/web4
1 files changed, 2 insertions, 2 deletions
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()