diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/production.md | 21 | ||||
-rw-r--r-- | support/init.d/peertube | 4 |
2 files changed, 23 insertions, 2 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index 4f20cf140..f770b58f6 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -195,6 +195,27 @@ Run: | |||
195 | $ sudo service peertube start | 195 | $ sudo service peertube start |
196 | ``` | 196 | ``` |
197 | 197 | ||
198 | ### OpenRC | ||
199 | |||
200 | If your OS uses OpenRC, copy the service script: | ||
201 | |||
202 | ``` | ||
203 | $ sudo cp /var/www/peertube/peertube-latest/support/init.d/peertube /etc/init.d/ | ||
204 | ``` | ||
205 | |||
206 | If you want to start PeerTube on boot: | ||
207 | |||
208 | ``` | ||
209 | $ sudo rc-update add peertube default | ||
210 | ``` | ||
211 | |||
212 | Run and print last logs: | ||
213 | |||
214 | ``` | ||
215 | $ sudo /etc/init.d/peertube start | ||
216 | $ tail -f /var/log/peertube/peertube.log | ||
217 | ``` | ||
218 | |||
198 | ### Administrator | 219 | ### Administrator |
199 | 220 | ||
200 | The administrator password is automatically generated and can be found in the | 221 | The administrator password is automatically generated and can be found in the |
diff --git a/support/init.d/peertube b/support/init.d/peertube index 4473fc0ea..bb51b2e99 100644 --- a/support/init.d/peertube +++ b/support/init.d/peertube | |||
@@ -4,10 +4,10 @@ APP_NAME="peertube" | |||
4 | USER="peertube" | 4 | USER="peertube" |
5 | GROUP="peertube" | 5 | GROUP="peertube" |
6 | NODE_ENV="production" | 6 | NODE_ENV="production" |
7 | APP_DIR="/var/www/peertube" | 7 | APP_DIR="/var/www/peertube/peertube-latest" |
8 | NODE_APP="dist/server" | 8 | NODE_APP="dist/server" |
9 | KWARGS="" | 9 | KWARGS="" |
10 | CONFIG_DIR="/etc/peertube" | 10 | CONFIG_DIR="/var/www/peertube/config" |
11 | PID_DIR="$APP_DIR/pid" | 11 | PID_DIR="$APP_DIR/pid" |
12 | PID_FILE="$PID_DIR/$APP_NAME.pid" | 12 | PID_FILE="$PID_DIR/$APP_NAME.pid" |
13 | LOG_DIR="/var/log/peertube" | 13 | LOG_DIR="/var/log/peertube" |