diff options
author | GĂ©rald Niel <gerald.niel@gegeweb.org> | 2018-12-13 20:53:36 +0100 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2018-12-13 20:53:36 +0100 |
commit | 7f3d712d5e5031b5d60c40468634a1a6d99c8c93 (patch) | |
tree | 2a164ed513bea7d32b01e286f95c57ecb6bbbe88 /support/freebsd | |
parent | 34515397d0c9af14d2c9e521c8c44712200d8cc1 (diff) | |
download | PeerTube-7f3d712d5e5031b5d60c40468634a1a6d99c8c93.tar.gz PeerTube-7f3d712d5e5031b5d60c40468634a1a6d99c8c93.tar.zst PeerTube-7f3d712d5e5031b5d60c40468634a1a6d99c8c93.zip |
(fix) FreeBSD startup script (#1484)
This PR fixes #1477 introduced by #1474
Diffstat (limited to 'support/freebsd')
-rwxr-xr-x | support/freebsd/peertube | 7 |
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 | ||
19 | sig_stop=HUP | 19 | sig_stop=-KILL |
20 | peertube_chdir="/var/www/peertube/peertube-latest" | 20 | peertube_chdir="/var/www/peertube/peertube-latest" |
21 | peertube_env="HOME=/var/www/peertube \ | 21 | peertube_env="HOME=/var/www/peertube \ |
22 | NODE_ENV=production \ | 22 | NODE_ENV=production \ |
23 | NODE_CONFIG_DIR=/var/www/peertube/config \ | 23 | NODE_CONFIG_DIR=/var/www/peertube/config \ |
24 | USER=peertube" | 24 | USER=peertube" |
25 | peertube_user=peertube | 25 | peertube_user=peertube |
26 | procname="node:" | ||
27 | 26 | ||
28 | command="/usr/local/bin/npm" | 27 | command="/usr/local/bin/node" |
29 | command_args="start >> /var/log/peertube/${name}.log 2>&1 &" | 28 | command_args="dist/server >> /var/log/peertube/${name}.log 2>&1 &" |
30 | 29 | ||
31 | run_rc_command "$1" | 30 | run_rc_command "$1" |