Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
d116df78
Commit
d116df78
authored
Mar 10, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing TERM to QUIT translator
parent
865080c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
config/unicorn.rb
+0
-14
config/unicorn_tcp.rb
+0
-13
No files found.
config/unicorn.rb
View file @
d116df78
...
...
@@ -5,17 +5,3 @@ preload_app true
data_dir
=
ENV
[
'DATA_DIR'
]
||
Dir
.
tmpdir
listen
"unix:
#{
data_dir
}
/forum.sock"
,
:backlog
=>
512
pid
"
#{
data_dir
}
/forum_unicorn.pid"
before_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn master intercepting TERM and sending myself QUIT instead'
Process
.
kill
'QUIT'
,
Process
.
pid
end
end
after_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn worker intercepting TERM and doing nothing. Waiting for master to send QUIT'
end
::
Mongoid
.
default_session
.
disconnect
end
config/unicorn_tcp.rb
View file @
d116df78
...
...
@@ -10,16 +10,3 @@ listen "#{listen_host}:#{listen_port}", :tcp_nopush => true
data_dir
=
ENV
[
'DATA_DIR'
]
||
Dir
.
tmpdir
pid
"
#{
data_dir
}
/forum_unicorn.pid"
before_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn master intercepting TERM and sending myself QUIT instead'
Process
.
kill
'QUIT'
,
Process
.
pid
end
end
after_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn worker intercepting TERM and doing nothing. Waiting for master to send QUIT'
end
::
Mongoid
.
default_session
.
disconnect
end
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