Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # put file in /lib/systemd/system
- [Unit]
- Description=sidekiq_my-project
- # start us only once the network and logging subsystems are available,
- # consider adding redis-server.service if Redis is local and systemd-managed.
- After=syslog.target network.target
- [Service]
- Type=simple
- WorkingDirectory=/home/deploy/applications/my-application
- ExecStart=/usr/local/bin/bundle exec sidekiq -C config/sidekiq.yml -e my-environment
- User=deploy
- Group=deploy
- UMask=0002
- # if we crash, restart
- RestartSec=1
- Restart=on-failure
- # output goes to /var/log/syslog
- StandardOutput=syslog
- StandardError=syslog
- # This will default to "bundler" if we don't specify it
- SyslogIdentifier=sidekiq
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement