From 2cf9a4626fa30cbdcbf51f0c4e44a51ba15d759f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Niel?= Date: Mon, 10 Dec 2018 10:51:28 +0100 Subject: Update FreeBSD startup script (#1474) --- support/freebsd/peertube | 2 ++ 1 file changed, 2 insertions(+) (limited to 'support/freebsd/peertube') diff --git a/support/freebsd/peertube b/support/freebsd/peertube index 78fdf5848..f28660f2c 100755 --- a/support/freebsd/peertube +++ b/support/freebsd/peertube @@ -16,12 +16,14 @@ load_rc_config $name : ${peertube_enable:=NO} +sig_stop=HUP peertube_chdir="/var/www/peertube/peertube-latest" peertube_env="HOME=/var/www/peertube \ NODE_ENV=production \ NODE_CONFIG_DIR=/var/www/peertube/config \ USER=peertube" peertube_user=peertube +procname="node:" command="/usr/local/bin/npm" command_args="start >> /var/log/peertube/${name}.log 2>&1 &" -- cgit v1.2.3 From 7f3d712d5e5031b5d60c40468634a1a6d99c8c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Niel?= Date: Thu, 13 Dec 2018 20:53:36 +0100 Subject: (fix) FreeBSD startup script (#1484) This PR fixes #1477 introduced by #1474 --- support/freebsd/peertube | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'support/freebsd/peertube') 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 : ${peertube_enable:=NO} -sig_stop=HUP +sig_stop=-KILL peertube_chdir="/var/www/peertube/peertube-latest" peertube_env="HOME=/var/www/peertube \ NODE_ENV=production \ NODE_CONFIG_DIR=/var/www/peertube/config \ USER=peertube" peertube_user=peertube -procname="node:" -command="/usr/local/bin/npm" -command_args="start >> /var/log/peertube/${name}.log 2>&1 &" +command="/usr/local/bin/node" +command_args="dist/server >> /var/log/peertube/${name}.log 2>&1 &" run_rc_command "$1" -- cgit v1.2.3