Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Remove worker_process changes. (#689)
Browse files Browse the repository at this point in the history
Nginx in EPEL already default to worker_process auto.

We don't need to alter it anymore in the spec.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
  • Loading branch information
jgrund authored Jul 20, 2018
1 parent 3d46dcc commit 119fae5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions python-iml-manager.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ rm -rf $RPM_BUILD_ROOT
PYTHONPATH=$RPM_BUILD_ROOT%{manager_root} %{__python} $RPM_BUILD_ROOT%{manager_root}/scripts/production_nginx.py \
$RPM_BUILD_ROOT%{manager_root}/chroma-manager.conf.template > /etc/nginx/conf.d/chroma-manager.conf

# set worker_processes to auto
sed -i '/^worker_processes /s/^/#/' /etc/nginx/nginx.conf
sed -i '1 i\worker_processes auto;' /etc/nginx/nginx.conf

# Start nginx which should present a helpful setup
# page if the user visits it before configuring Chroma fully
systemctl enable nginx
Expand Down Expand Up @@ -334,12 +330,6 @@ fi
%systemd_preun iml-syslog.service
%systemd_preun iml-view-server.service

if [ $1 -lt 1 ]; then
#reset worker processes
sed -i '/^worker_processes auto;/d' /etc/nginx/nginx.conf
sed -i '/^#worker_processes /s/^#//' /etc/nginx/nginx.conf
fi

%postun -n python2-%{pypi_name}
if [ $1 -lt 1 ]; then
for port in 80 443; do
Expand Down

0 comments on commit 119fae5

Please sign in to comment.