mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Merge pull request #2715 from kkimurak/fix-supervisord-configs
Update supervisord configs
This commit is contained in:
commit
1d85fef594
@ -251,6 +251,10 @@ echo "UseDNS no" >> /etc/ssh/sshd_config
|
||||
# move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/
|
||||
sed -i "s|^[#]*logfile=.*|logfile=${GITLAB_LOG_DIR}/supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf
|
||||
|
||||
# prevent confusing warning "CRIT Supervisor running as root" by clarify run as root
|
||||
# user not defined in supervisord.conf by default, so just append it after [supervisord] block
|
||||
sed -i "/\[supervisord\]/a user=root" /etc/supervisor/supervisord.conf
|
||||
|
||||
# move nginx logs to ${GITLAB_LOG_DIR}/nginx
|
||||
sed -i \
|
||||
-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}}
|
||||
-C ${GITLAB_INSTALL_DIR}/config/sidekiq_queues.yml
|
||||
-e ${RAILS_ENV}
|
||||
-t {{SIDEKIQ_SHUTDOWN_TIMEOUT}}
|
||||
-P ${GITLAB_INSTALL_DIR}/tmp/pids/sidekiq.pid
|
||||
-L ${GITLAB_INSTALL_DIR}/log/sidekiq.log
|
||||
user=git
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user