]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add systemd file example
authorChocobozzz <florian.bigard@gmail.com>
Fri, 3 Jun 2016 13:58:04 +0000 (15:58 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 3 Jun 2016 13:58:04 +0000 (15:58 +0200)
support/systemd/peertube.service [new file with mode: 0644]

diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service
new file mode 100644 (file)
index 0000000..8aaa2e6
--- /dev/null
@@ -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