Created
January 1, 2017 19:38
-
-
Save duderamos/a53bee75212026f8202ec6d5bfb42ba5 to your computer and use it in GitHub Desktop.
Systemd unit file for delayed_job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=delayed_job | |
After=syslog.target | |
After=postgresql.service | |
[Service] | |
Type=forking | |
User=netengine | |
Environment=RAILS_ENV=production | |
WorkingDirectory=/var/www/unicorn/current | |
ExecStart=/bin/sh -c "/etc/rbenv/shims/ruby /var/www/unicorn/current/script/delayed_job start" | |
ExecStop=/bin/sh -c "/etc/rbenv/shims/ruby /var/www/unicorn/current/script/delayed_job stop" | |
TimeoutSec=120 | |
PIDFile=/var/www/unicorn/current/tmp/pids/delayed_job.pid | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/etc/rbenv/shims/ruby
and/var/www/unicorn/current/script/delayed_job
can please describe this two routes?