aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xsupport/freebsd/peertube7
1 files changed, 3 insertions, 4 deletions
diff --git a/support/freebsd/peertube b/support/freebsd/peertube
index f28660f2c..5d14c58ae 100755
--- a/support/freebsd/peertube
+++ b/support/freebsd/peertube
@@ -16,16 +16,15 @@ load_rc_config $name
16 16
17: ${peertube_enable:=NO} 17: ${peertube_enable:=NO}
18 18
19sig_stop=HUP 19sig_stop=-KILL
20peertube_chdir="/var/www/peertube/peertube-latest" 20peertube_chdir="/var/www/peertube/peertube-latest"
21peertube_env="HOME=/var/www/peertube \ 21peertube_env="HOME=/var/www/peertube \
22NODE_ENV=production \ 22NODE_ENV=production \
23NODE_CONFIG_DIR=/var/www/peertube/config \ 23NODE_CONFIG_DIR=/var/www/peertube/config \
24USER=peertube" 24USER=peertube"
25peertube_user=peertube 25peertube_user=peertube
26procname="node:"
27 26
28command="/usr/local/bin/npm" 27command="/usr/local/bin/node"
29command_args="start >> /var/log/peertube/${name}.log 2>&1 &" 28command_args="dist/server >> /var/log/peertube/${name}.log 2>&1 &"
30 29
31run_rc_command "$1" 30run_rc_command "$1"