Advertisement
Guest User

Untitled

a guest
May 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # put file in /lib/systemd/system
  2.  
  3. [Unit]
  4. Description=sidekiq_my-project
  5.  
  6. # start us only once the network and logging subsystems are available,
  7. # consider adding redis-server.service if Redis is local and systemd-managed.
  8. After=syslog.target network.target
  9.  
  10. [Service]
  11. Type=simple
  12. WorkingDirectory=/home/deploy/applications/my-application
  13.  
  14. ExecStart=/usr/local/bin/bundle exec sidekiq -C config/sidekiq.yml -e my-environment
  15. User=deploy
  16. Group=deploy
  17. UMask=0002
  18.  
  19. # if we crash, restart
  20. RestartSec=1
  21. Restart=on-failure
  22.  
  23. # output goes to /var/log/syslog
  24. StandardOutput=syslog
  25. StandardError=syslog
  26.  
  27. # This will default to "bundler" if we don't specify it
  28. SyslogIdentifier=sidekiq
  29.  
  30. [Install]
  31. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement