On Sat, 15 Sep 2012 19:55:49 -0400, "justin" <nginx-forum at nginx.us> wrote: > I am trying to get fancy and have `nginx.conf` auto-detect Not knowing how to auto-detect it, I usually just excute this as ROOT: sed -i '/^worker_processes/s,[0-9]\+,'"$(sort -u /proc/cpuinfo | grep -c processor)"',' /etc/nginx/nginx.conf