summarylogtreecommitdiffstats
path: root/mastodon-streaming.service
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon-streaming.service')
-rw-r--r--mastodon-streaming.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/mastodon-streaming.service b/mastodon-streaming.service
new file mode 100644
index 000000000000..ac2d9a7963f7
--- /dev/null
+++ b/mastodon-streaming.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Mastodon streaming API service
+After=network.target
+
+[Service]
+Type=simple
+User=mastodon
+WorkingDirectory=/var/lib/mastodon/live
+Environment="NODE_ENV=production"
+Environment="PORT=4000"
+ExecStart=/usr/bin/npm run start
+TimeoutSec=15
+Restart=always
+
+[Install]
+WantedBy=multi-user.target