Skip to content
Snippets Groups Projects
Commit 67ac918d authored by Wirebrass's avatar Wirebrass Committed by Chocobozzz
Browse files

Add/update OpenRC service script (#2012)

* Update APP_DIR and CONFIG_DIR

APP_DIR is now in /var/www/peertube/peertube-latest (symbolic link).
CONFIG_DIR is now in /var/www/peertube/config

* Add OpenRC service script

Tested on Gentoo Linux.
parent 07d02f6d
No related branches found
No related tags found
No related merge requests found
...@@ -195,6 +195,27 @@ Run: ...@@ -195,6 +195,27 @@ Run:
$ sudo service peertube start $ sudo service peertube start
``` ```
### OpenRC
If your OS uses OpenRC, copy the service script:
```
$ sudo cp /var/www/peertube/peertube-latest/support/init.d/peertube /etc/init.d/
```
If you want to start PeerTube on boot:
```
$ sudo rc-update add peertube default
```
Run and print last logs:
```
$ sudo /etc/init.d/peertube start
$ tail -f /var/log/peertube/peertube.log
```
### Administrator ### Administrator
The administrator password is automatically generated and can be found in the The administrator password is automatically generated and can be found in the
......
...@@ -4,10 +4,10 @@ APP_NAME="peertube" ...@@ -4,10 +4,10 @@ APP_NAME="peertube"
USER="peertube" USER="peertube"
GROUP="peertube" GROUP="peertube"
NODE_ENV="production" NODE_ENV="production"
APP_DIR="/var/www/peertube" APP_DIR="/var/www/peertube/peertube-latest"
NODE_APP="dist/server" NODE_APP="dist/server"
KWARGS="" KWARGS=""
CONFIG_DIR="/etc/peertube" CONFIG_DIR="/var/www/peertube/config"
PID_DIR="$APP_DIR/pid" PID_DIR="$APP_DIR/pid"
PID_FILE="$PID_DIR/$APP_NAME.pid" PID_FILE="$PID_DIR/$APP_NAME.pid"
LOG_DIR="/var/log/peertube" LOG_DIR="/var/log/peertube"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment