Created
July 1, 2019 10:41
-
-
Save rafamoreira/376da997f37c2dee692159baa1e12ec1 to your computer and use it in GitHub Desktop.
delayed_job systemd service
This file contains hidden or 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=network.target | |
After=syslog.target | |
After=postgresql.target | |
[Service] | |
Type=forking | |
User=deploy | |
Environment=RAILS_ENV=production | |
WorkingDirectory=/home/deploy/apps/app/current | |
ExecStart=/home/deploy/.rbenv/shims/ruby /home/deploy/apps/app/current/bin/delayed_job start | |
ExecStop=/home/deploy/.rbenv/shims/ruby /home/deploy/apps/app/current/bin/delayed_job stop | |
TimeoutSec=120 | |
PIDFile=/home/deploy/apps/app/shared/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