diff options
Diffstat (limited to 'support/systemd/peertube.service')
-rw-r--r-- | support/systemd/peertube.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service new file mode 100644 index 000000000..8aaa2e6e3 --- /dev/null +++ b/support/systemd/peertube.service | |||
@@ -0,0 +1,17 @@ | |||
1 | [Unit] | ||
2 | Description=PeerTube daemon | ||
3 | |||
4 | [Service] | ||
5 | Type=simple | ||
6 | Environment=NODE_ENV=production | ||
7 | User=myuser | ||
8 | Group=myuser | ||
9 | ExecStart=/usr/bin/node server | ||
10 | WorkingDirectory=/path/to/peertube | ||
11 | StandardOutput=syslog | ||
12 | StandardError=syslog | ||
13 | SyslogIdentifier=peertube | ||
14 | Restart=always | ||
15 | |||
16 | [Install] | ||
17 | WantedBy=multi-user.target | ||