]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/systemd/peertube.service
Added redis-server.service to After
[github/Chocobozzz/PeerTube.git] / support / systemd / peertube.service
index 8aaa2e6e32d53ad82659b85e8606220dc4da811f..88856385c464e298d3b7f14e55546d8815a3c311 100644 (file)
@@ -1,13 +1,15 @@
 [Unit]
 Description=PeerTube daemon
+After=network.target postgresql.service redis-server.service
 
 [Service]
 Type=simple
 Environment=NODE_ENV=production
-User=myuser
-Group=myuser
-ExecStart=/usr/bin/node server
-WorkingDirectory=/path/to/peertube
+Environment=NODE_CONFIG_DIR=/var/www/peertube/config
+User=peertube
+Group=peertube
+ExecStart=/usr/bin/npm start
+WorkingDirectory=/var/www/peertube/peertube-latest
 StandardOutput=syslog
 StandardError=syslog
 SyslogIdentifier=peertube