Skip to content

Instantly share code, notes, and snippets.

@hackedunit
Created March 7, 2017 10:18
Show Gist options
  • Save hackedunit/79b9c52b3a0cb6e0f7b41db907330c92 to your computer and use it in GitHub Desktop.
Save hackedunit/79b9c52b3a0cb6e0f7b41db907330c92 to your computer and use it in GitHub Desktop.
Sidekiq systemd config for cloudnet
[Unit]
Description=Sidekiq
After=network.target
[Service]
User=cloudnet
Group=cloudnet
WorkingDirectory=/home/cloudnet/app
EnvironmentFile=/home/cloudnet/app/.env.production
ExecStart=/bin/bash -lc 'bundle exec sidekiq -C config/sidekiq.yml'
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