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
251
251
# move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/
252
252
sed -i " s|^[#]*logfile=.*|logfile=${GITLAB_LOG_DIR} /supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf
253
253
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
+
254
258
# move nginx logs to ${GITLAB_LOG_DIR}/nginx
255
259
sed -i \
256
260
-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}}
349
353
-C ${GITLAB_INSTALL_DIR} /config/sidekiq_queues.yml
350
354
-e ${RAILS_ENV}
351
355
-t {{SIDEKIQ_SHUTDOWN_TIMEOUT}}
352
- -P ${GITLAB_INSTALL_DIR} /tmp/pids/sidekiq.pid
353
- -L ${GITLAB_INSTALL_DIR} /log/sidekiq.log
354
356
user=git
355
357
autostart=true
356
358
autorestart=true
You can’t perform that action at this time.
0 commit comments