summarylogtreecommitdiffstats
path: root/mastodon-sidekiq.service
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon-sidekiq.service')
-rw-r--r--mastodon-sidekiq.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/mastodon-sidekiq.service b/mastodon-sidekiq.service
new file mode 100644
index 000000000000..df3b2ac91d4b
--- /dev/null
+++ b/mastodon-sidekiq.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Mastodon background queue service
+After=network.target
+
+[Service]
+Type=simple
+User=mastodon
+WorkingDirectory=/var/lib/mastodon/live
+Environment="RAILS_ENV=production"
+Environment="DB_POOL=5"
+ExecStart=/usr/bin/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push
+TimeoutSec=15
+Restart=always
+
+[Install]
+WantedBy=multi-user.target