Skip to content

Commit

Permalink
Always use signal USR2 for puma with Redmine
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Apr 24, 2024
1 parent 7f26522 commit 45912c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ExecStart={{ gitlab_gem_home }}/bin/bundle exec puma --config {{ gitlab_path }}/
PIDFile={{ gitlab_pid_path }}/puma.pid
Restart=on-failure
RestartSec={{ gitlab_systemd_restart_sec }}
ExecReload=/bin/kill -USR2 $MAINPID
ExecReload=/usr/bin/kill -USR2 $MAINPID
SyslogIdentifier=gitlab-puma
Slice=gitlab.slice

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ExecStart={{ gitlab_workhorse_path }}/gitlab-workhorse \
-authSocket {{ gitlab_auth_socket }} \
-documentRoot {{ gitlab_path }}/public \
-secretPath {{ gitlab_path }}/.gitlab_workhorse_secret
ExecReload=/bin/kill -USR2 $MAINPID
ExecReload=/usr/bin/kill -USR2 $MAINPID
Restart=on-failure
RestartSec={{ gitlab_systemd_restart_sec }}
SyslogIdentifier=gitlab-workhorse
Expand Down
4 changes: 1 addition & 3 deletions roles/redmine/templates/etc/systemd/system/puma.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ ExecStart={{ redmine_home }}/.rvm/wrappers/default/bundle exec puma --config {{
{% else %}
Environment="GEM_HOME={{ redmine_ruby_system_gem_home }}"
ExecStart={{ redmine_ruby_system_gem_home }}/bin/bundle exec puma --config {{ redmine_config_dir }}/puma.rb
{% if active_puma_worker_killer|bool %}
ExecReload=/bin/kill -USR2 $MAINPID
{% endif %}
{% endif %}
ExecReload=/usr/bin/kill -USR2 $MAINPID
SyslogIdentifier={{ puma_service_name }}
Restart=on-failure
RestartSec=30
Expand Down

0 comments on commit 45912c7

Please sign in to comment.