Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cd675d9c
Commit
cd675d9c
authored
Nov 01, 2021
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trap kill signal and call cleanup/stop
parent
0eb0e6a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
bin/background_jobs
bin/background_jobs
+7
-0
No files found.
bin/background_jobs
View file @
cd675d9c
...
...
@@ -8,6 +8,8 @@ sidekiq_pidfile="$app_root/tmp/pids/sidekiq-cluster.pid"
sidekiq_logfile
=
"
$app_root
/log/sidekiq.log"
gitlab_user
=
$(
ls
-l
config.ru |
awk
'{print $3}'
)
trap
cleanup EXIT
warn
()
{
echo
"
$@
"
1>&2
...
...
@@ -59,6 +61,11 @@ start_sidekiq()
${
cmd
}
bin/sidekiq-cluster
"
${
processes_args
[@]
}
"
-P
$sidekiq_pidfile
-e
$RAILS_ENV
"
$@
"
2>&1 |
tee
-a
$sidekiq_logfile
}
cleanup
()
{
stop
}
action
=
"
$1
"
shift
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment