File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,10 @@ echo "UseDNS no" >> /etc/ssh/sshd_config
251251# move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/
252252sed -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
255259sed -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
354356user=git
355357autostart=true
356358autorestart=true
You can’t perform that action at this time.
0 commit comments