debian-mirror-gitlab/debian/patches/0620-pid-log-paths.patch

59 lines
1.5 KiB
Diff
Raw Normal View History

2016-02-13 17:59:45 +05:30
Bug: https://gitlab.com/gitlab-org/gitlab-ce/issues/13415
2018-12-13 14:23:24 +05:30
--- a/bin/mail_room
+++ b/bin/mail_room
@@ -7,6 +7,11 @@
2016-02-15 23:03:46 +05:30
mail_room_logfile="$app_root/log/mail_room.log"
mail_room_config="$app_root/config/mail_room.yml"
+# Read configuration variable file if it is present
+test -f /etc/default/gitlab && . /etc/default/gitlab
+
+mail_room_logfile=${mail_room_pid_path}
+
get_mail_room_pid()
{
2021-01-29 14:51:13 +05:30
local pid
--- a/bin/web_unicorn
+++ b/bin/web_unicorn
@@ -7,6 +7,11 @@
unicorn_config="$app_root/config/unicorn.rb"
unicorn_cmd="bundle exec unicorn_rails -c $unicorn_config -E $RAILS_ENV"
+# Read configuration variable file if it is present
+test -f /etc/default/gitlab && . /etc/default/gitlab
+
+unicorn_pidfile=${web_server_pid_path}
+
get_unicorn_pid()
{
2021-01-29 14:51:13 +05:30
local pid
2020-04-08 15:34:39 +05:30
--- a/bin/background_jobs_sk
+++ b/bin/background_jobs_sk
@@ -7,6 +7,11 @@
sidekiq_config="$app_root/config/sidekiq_queues.yml"
gitlab_user=$(ls -l config.ru | awk '{print $3}')
+# Read configuration variable file if it is present
+test -f /etc/default/gitlab && . /etc/default/gitlab
+
+sidekiq_pidfile=${sidekiq_pid_path}
+
warn()
{
echo "$@" 1>&2
--- a/bin/background_jobs_sk_cluster
+++ b/bin/background_jobs_sk_cluster
@@ -6,6 +6,11 @@
sidekiq_logfile="$app_root/log/sidekiq.log"
gitlab_user=$(ls -l config.ru | awk '{print $3}')
+# Read configuration variable file if it is present
+test -f /etc/default/gitlab && . /etc/default/gitlab
+
+sidekiq_pidfile=${sidekiq_pid_path}
+
warn()
{
echo "$@" 1>&2