Update FreeBSD startup script (#1474)
authorGérald Niel <gerald.niel@gegeweb.org>
Mon, 10 Dec 2018 09:51:28 +0000 (10:51 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 10 Dec 2018 09:51:28 +0000 (10:51 +0100)
support/freebsd/peertube

index 78fdf5848ad68b17e8c42fb75fd808271f9754a2..f28660f2c109072768708a3882ff212715a04713 100755 (executable)
@@ -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 &"