aboutsummaryrefslogtreecommitdiffstats
path: root/www/gitlab/files/patch-bin_background__jobs
blob: 532332130faa1f2ad8b010f2e6a9dee68e53d4e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- bin/background_jobs.orig	2025-10-21 19:12:22 UTC
+++ bin/background_jobs
@@ -49,19 +49,14 @@ start_sidekiq()
 start_sidekiq()
 {
   cmd="exec"
-  chpst=$(command -v chpst)
 
-  if [ -n "$chpst" ]; then
-    cmd="${cmd} ${chpst} -P"
-  fi
-
   # sidekiq-cluster expects an argument per process.
   for (( i=1; i<=sidekiq_workers; i++ ))
   do
     processes_args+=("${sidekiq_queues}")
   done
 
-  ${cmd} bin/sidekiq-cluster "${processes_args[@]}" -P "$sidekiq_pidfile" -e "$RAILS_ENV" "$@" 2>&1 | tee -a "$sidekiq_logfile"
+  ${cmd} bin/sidekiq-cluster "${processes_args[@]}" -P "$sidekiq_pidfile" -e "$RAILS_ENV" "$@" 2>&1 >> "$sidekiq_logfile"
 }
 
 cleanup()