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..7d1e3d48c73f
--- /dev/null
+++ b/mastodon-sidekiq.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=mastodon-sidekiq
+After=network.target
+
+[Service]
+Type=simple
+User=mastodon
+WorkingDirectory=/home/mastodon/live
+Environment="RAILS_ENV=production"
+Environment="DB_POOL=5"
+ExecStart=/home/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