Sha256: 6e0aaece4e68936c54c7f98ba95ca000055f73e2acf6628bacb5e7168002f394

Contents?: true

Size: 913 Bytes

Versions: 2

Compression:

Stored size: 913 Bytes

Contents

[Unit]
Description=sidekiq for <%= "#{fetch(:application)} (#{fetch(:stage)})" %>
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=<%= File.join(fetch(:deploy_to), 'current') %>
ExecStart=<%= SSHKit.config.command_map[:bundle] %> exec sidekiq -e <%= fetch(:sidekiq_env) %>
ExecReload=/bin/kill -TSTP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
<%="StandardOutput=append:#{fetch(:sidekiq_log)}" if fetch(:sidekiq_log) %>
<%="StandardError=append:#{fetch(:sidekiq_error_log)}" if fetch(:sidekiq_error_log) %>
<%="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

SyslogIdentifier=sidekiq

[Install]
WantedBy=default.target

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-sidekiq-2.0.0 lib/generators/capistrano/sidekiq/systemd/templates/sidekiq.service.capistrano.erb
capistrano-sidekiq-2.0.0.beta5 lib/generators/capistrano/sidekiq/systemd/templates/sidekiq.service.capistrano.erb