Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add systemd file example

Chocobozzz468892541175
diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service
new file mode 100644
index 0000000000..8aaa2e6e32
--- /dev/null
+++ b/support/systemd/peertube.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=PeerTube daemon
+
+[Service]
+Type=simple
+Environment=NODE_ENV=production
+User=myuser
+Group=myuser
+ExecStart=/usr/bin/node server
+WorkingDirectory=/path/to/peertube
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=peertube
+Restart=always
+
+[Install]
+WantedBy=multi-user.target