aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <chocobozzz@framasoft.org>2018-03-19 18:34:01 +0100
committerChocobozzz <chocobozzz@framasoft.org>2018-03-19 18:34:01 +0100
commitc1dd9b0734336a769f5dce9800b447c3d0e58bb1 (patch)
tree1fcd9eebe8d8e22ed52ff44044d37a293dc1f435
parent632c5e3629c2432371bb6339ad883208bff64ac2 (diff)
parentd29e239cc4cbd5f5a6840731220f6bf3efe1b5ea (diff)
downloadPeerTube-c1dd9b0734336a769f5dce9800b447c3d0e58bb1.tar.gz
PeerTube-c1dd9b0734336a769f5dce9800b447c3d0e58bb1.tar.zst
PeerTube-c1dd9b0734336a769f5dce9800b447c3d0e58bb1.zip
Merge branch 'develop' into 'develop'
Add FreeBSD rc script See merge request chocobozzz/PeerTube!4
-rwxr-xr-xsupport/freebsd/peertube29
1 files changed, 29 insertions, 0 deletions
diff --git a/support/freebsd/peertube b/support/freebsd/peertube
new file mode 100755
index 000000000..78fdf5848
--- /dev/null
+++ b/support/freebsd/peertube
@@ -0,0 +1,29 @@
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
19peertube_chdir="/var/www/peertube/peertube-latest"
20peertube_env="HOME=/var/www/peertube \
21NODE_ENV=production \
22NODE_CONFIG_DIR=/var/www/peertube/config \
23USER=peertube"
24peertube_user=peertube
25
26command="/usr/local/bin/npm"
27command_args="start >> /var/log/peertube/${name}.log 2>&1 &"
28
29run_rc_command "$1"