about summary refs log tree commit homepage
path: root/examples/unicorn.conf.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-05 21:38:17 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-05 21:48:56 +0000
commit9f846a26d24d7bfaf17cacad16cfbae7eec39c74 (patch)
treec52bb107c5938eec3954c74e7743b9d2e635b39c /examples/unicorn.conf.rb
parent04bcc147d0081433069235a87f779055fa7b6f3c (diff)
downloadunicorn-9f846a26d24d7bfaf17cacad16cfbae7eec39c74.tar.gz
The PrivateTmp feature of systemd breaks the usage of /tmp for the
shared Unix domain socket between nginx and unicorn, so discourage the
use of /tmp in that case.

While we're at it, use consistent paths for everything and use an
obviously intended-for-user-customization "/path/to" prefix instead
of "/tmp"

ML-Ref: CAKLVLx_t+9zWMhquMWDfStrxS7xrNoGmN0ZDsjSCUE=VxU+oyQ@mail.gmail.com
Reported-by: David Wilkins <dwilkins@conecuh.com>
Diffstat (limited to 'examples/unicorn.conf.rb')
-rw-r--r--examples/unicorn.conf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/unicorn.conf.rb b/examples/unicorn.conf.rb
index 4042d9c..9dce58a 100644
--- a/examples/unicorn.conf.rb
+++ b/examples/unicorn.conf.rb
@@ -25,7 +25,7 @@ working_directory "/path/to/app/current" # available in 0.94.0+
 
 # listen on both a Unix domain socket and a TCP port,
 # we use a shorter backlog for quicker failover when busy
-listen "/tmp/.sock", :backlog => 64
+listen "/path/to/.unicorn.sock", :backlog => 64
 listen 8080, :tcp_nopush => true
 
 # nuke workers after 30 seconds instead of 60 seconds (the default)