Sha256: 33529f2149a4d1f5e7b5b5b40647276aad1c86930660e7c1c18cebed04e190a4
Contents?: true
Size: 1.09 KB
Versions: 9
Compression:
Stored size: 1.09 KB
Contents
[Unit] Description=Start delayed_job_{{job_queue}}{{loop_index}} instance After=syslog.target network.target [Service] Type=forking # Uncomment this if you are going to use this as a system service # if using as a user service then leave commented out, or you will get an error trying to start the service # !!! Change this to your deploy user account if you are using this as a system service !!! User=deploy Group=deploy UMask=0002 Environment=RAILS_ENV={{rails_env}} WorkingDirectory=/u/apps/{{project_name}}/current ExecStart=/usr/local/bin/bundle exec {{delayed_job_command}} --identifier={{job_queue}}{{loop_index}} --queue={{job_queue}} start ExecStop=/usr/local/bin/bundle exec {{delayed_job_command}} --identifier={{job_queue}}{{loop_index}} --queue={{job_queue}} stop TimeoutSec=120 PIDFile=/u/apps/{{project_name}}/shared/tmp/pids/delayed_job.{{job_queue}}{{loop_index}}.pid # if we crash, restart RestartSec=1 Restart=on-failure StandardOutput=syslog StandardError=syslog # This will default to "bundler" if we don't specify it SyslogIdentifier=delayed_job [Install] WantedBy=multi-user.target
Version data entries
9 entries across 9 versions & 1 rubygems