Skip to content

Instantly share code, notes, and snippets.

@MakarovCode
Created June 5, 2021 03:28
Show Gist options
  • Save MakarovCode/2a8e1d4ee394cfa2fc818d7b65d52bc4 to your computer and use it in GitHub Desktop.
Save MakarovCode/2a8e1d4ee394cfa2fc818d7b65d52bc4 to your computer and use it in GitHub Desktop.
Sidekiq SystemCtl Daemon file
[Unit]
Description=sidekiq
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/rails/project/current
ExecStart=/home/rails/.rbenv/shims/bundle exec sidekiq -e production -L /home/rails/project/current/log/sidekiq.log
User=rails
Group=rails
UMask=0002
RestartSec=1
Restart=on-failure
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sidekiq
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment