From 46cc05089ea34b823454f790092f386f22d3adb1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Apr 2011 01:04:19 +0000 Subject: configurator: remove outdated user example in after_fork Configurator itself supports user at the top-level. --- lib/unicorn/configurator.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 8913928..6986e79 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -132,11 +132,6 @@ class Unicorn::Configurator # # Existing options for Unicorn::Configurator#listen such as # # :backlog, :rcvbuf, :sndbuf are available here as well. # server.listen(addr, :tries => -1, :delay => 5, :backlog => 128) - # - # # drop permissions to "www-data" in the worker - # # generally there's no reason to start Unicorn as a priviledged user - # # as it is not recommended to expose Unicorn to public clients. - # worker.user('www-data', 'www-data') if Process.euid == 0 # end def after_fork(*args, &block) set_hook(:after_fork, block_given? ? block : args[0]) -- cgit v1.2.3-24-ge0c7