(fix) FreeBSD startup script (#1484)
authorGérald Niel <gerald.niel@gegeweb.org>
Thu, 13 Dec 2018 19:53:36 +0000 (20:53 +0100)
committerRigel Kent <par@rigelk.eu>
Thu, 13 Dec 2018 19:53:36 +0000 (20:53 +0100)
This PR fixes #1477 introduced by #1474

support/freebsd/peertube

index f28660f2c109072768708a3882ff212715a04713..5d14c58ae79b2aa7d808aca123b8c3cf388bdac7 100755 (executable)
@@ -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"