]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/freebsd/peertube
Generate translations
[github/Chocobozzz/PeerTube.git] / support / freebsd / peertube
CommitLineData
d29e239c
GN
1#!/bin/sh
2
3# PROVIDE: peertube
4# REQUIRE: LOGIN postgresql nginx redis
5# KEYWORD: shutdown
6
7PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
8
9. /etc/rc.subr
10
11desc="Peertube daemon"
12name=peertube
13rcvar=peertube_enable
14
15load_rc_config $name
16
17: ${peertube_enable:=NO}
18
7f3d712d 19sig_stop=-KILL
d29e239c
GN
20peertube_chdir="/var/www/peertube/peertube-latest"
21peertube_env="HOME=/var/www/peertube \
22NODE_ENV=production \
23NODE_CONFIG_DIR=/var/www/peertube/config \
24USER=peertube"
25peertube_user=peertube
26
7f3d712d
GN
27command="/usr/local/bin/node"
28command_args="dist/server >> /var/log/peertube/${name}.log 2>&1 &"
d29e239c
GN
29
30run_rc_command "$1"