Sha256: ef19366526eb9c191396539378f471b7da98be7069b30ce4ef06322f4a1ab9ab

Contents?: true

Size: 852 Bytes

Versions: 3

Compression:

Stored size: 852 Bytes

Contents

[Unit]
Description = <%= fetch(:application) %> Sidekiq Background Worker
After = multi-user.target

[Service]
Type = simple
Environment = RAILS_ENV=<%= fetch(:rails_env) %>
Environment = PWD=<%= current_path %>
EnvironmentFile=/etc/environment
WorkingDirectory = <%= current_path %>
ExecStart = /home/<%= fetch(:user) %>/.rvm/bin/rvm <%= fetch(:rvm_ruby_version) %> do <%= current_path %>/bin/sidekiq -e <%= fetch(:rails_env) %> -L <%= shared_path %>/log/sidekiq.log -P <%= shared_path %>/tmp/pids/sidekiq.pid
ExecStop = /home/<%= fetch(:user) %>/.rvm/bin/rvm <%= fetch(:rvm_ruby_version) %> do <%= current_path %>/bin/sidekiqctl stop <%= shared_path %>/tmp/pids/sidekiq.pid
User = <%= fetch(:user) %>
Group = <%= fetch(:group) || fetch(:user) %>
KillMode = process
UMask = 0002
RestartSec = 1
Restart = always

[Install]
WantedBy = multi-user.target

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/auto/config/systemd/sidekiq.service.erb
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/auto/config/systemd/sidekiq.service.erb
adminos-1.0.0.pre.rc.3 lib/generators/templates/install/auto/config/systemd/sidekiq.service.erb