Skip to content

Commit 1d85fef

Browse files
authored
Merge pull request #2715 from kkimurak/fix-supervisord-configs
Update supervisord configs
2 parents 6b947c1 + a1dcfe6 commit 1d85fef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

assets/build/install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ echo "UseDNS no" >> /etc/ssh/sshd_config
251251
# move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/
252252
sed -i "s|^[#]*logfile=.*|logfile=${GITLAB_LOG_DIR}/supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf
253253

254+
# prevent confusing warning "CRIT Supervisor running as root" by clarify run as root
255+
# user not defined in supervisord.conf by default, so just append it after [supervisord] block
256+
sed -i "/\[supervisord\]/a user=root" /etc/supervisor/supervisord.conf
257+
254258
# move nginx logs to ${GITLAB_LOG_DIR}/nginx
255259
sed -i \
256260
-e "s|access_log /var/log/nginx/access.log;|access_log ${GITLAB_LOG_DIR}/nginx/access.log;|" \
@@ -349,8 +353,6 @@ command=bundle exec sidekiq -c {{SIDEKIQ_CONCURRENCY}}
349353
-C ${GITLAB_INSTALL_DIR}/config/sidekiq_queues.yml
350354
-e ${RAILS_ENV}
351355
-t {{SIDEKIQ_SHUTDOWN_TIMEOUT}}
352-
-P ${GITLAB_INSTALL_DIR}/tmp/pids/sidekiq.pid
353-
-L ${GITLAB_INSTALL_DIR}/log/sidekiq.log
354356
user=git
355357
autostart=true
356358
autorestart=true

0 commit comments

Comments
 (0)