diff options
Diffstat (limited to 'conf/mastodon-sidekiq.service')
| -rw-r--r-- | conf/mastodon-sidekiq.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/mastodon-sidekiq.service b/conf/mastodon-sidekiq.service new file mode 100644 index 0000000..d31fed4 --- /dev/null +++ b/conf/mastodon-sidekiq.service @@ -0,0 +1,16 @@ +[Unit] + Description=mastodon-sidekiq + After=network.target + +[Service] + Type=simple + User=mastodon + WorkingDirectory=/opt/mastodon/live + Environment="RAILS_ENV=production" + Environment="DB_POOL=5" + ExecStart=/opt/mastodon/.rbenv/shims/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push + TimeoutSec=15 + Restart=always + +[Install] + WantedBy=multi-user.target
\ No newline at end of file |
