Skip to content

Commit

Permalink
Add sidekiq_service_unit_env_vars option to pass Environment variable…
Browse files Browse the repository at this point in the history
…s to systemd config file (#243)
  • Loading branch information
Paprikas authored May 25, 2020
1 parent bb661da commit 9678376
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ExecStop=/bin/kill -TERM $MAINPID
<%="User=#{sidekiq_user}" if sidekiq_user %>
<%="EnvironmentFile=#{fetch(:sidekiq_service_unit_env_file)}" if fetch(:sidekiq_service_unit_env_file) %>

<% fetch(:sidekiq_service_unit_env_vars, []).each do |environment_variable| %>
<%="Environment=#{environment_variable}" %>
<% end %>

RestartSec=1
Restart=on-failure

Expand Down

0 comments on commit 9678376

Please sign in to comment.