diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 15:58:04 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 15:58:04 +0200 |
commit | 468892541175f9662f8b1b977e819dc1a496f282 (patch) | |
tree | d976a12866f8f9c2c4737a9401911ba45ad40549 /support | |
parent | 5d4e9411005059c775e1b1ccd85100cd9484aedc (diff) | |
download | PeerTube-468892541175f9662f8b1b977e819dc1a496f282.tar.gz PeerTube-468892541175f9662f8b1b977e819dc1a496f282.tar.zst PeerTube-468892541175f9662f8b1b977e819dc1a496f282.zip |
Add systemd file example
Diffstat (limited to 'support')
-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 | ||