From 67ac918df9ef89d65e43f1c4bd40f84417f0bd0c Mon Sep 17 00:00:00 2001 From: Wirebrass Date: Tue, 13 Aug 2019 09:22:54 +0200 Subject: 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. --- support/doc/production.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'support/doc') 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: $ 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 The administrator password is automatically generated and can be found in the -- cgit v1.2.3