summaryrefslogtreecommitdiff
path: root/contrib/runit/s5-nginx-lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/runit/s5-nginx-lua')
-rwxr-xr-xcontrib/runit/s5-nginx-lua/log/run9
l---------contrib/runit/s5-nginx-lua/log/supervise1
-rwxr-xr-xcontrib/runit/s5-nginx-lua/run8
l---------contrib/runit/s5-nginx-lua/supervise1
4 files changed, 19 insertions, 0 deletions
diff --git a/contrib/runit/s5-nginx-lua/log/run b/contrib/runit/s5-nginx-lua/log/run
new file mode 100755
index 0000000..2142c2e
--- /dev/null
+++ b/contrib/runit/s5-nginx-lua/log/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+LOG_D="/var/log/sfive/nginx-lua"
+if [ ! -d "$LOG_D" ]; then
+ mkdir -p -m0750 "$LOG_D"
+fi
+chown sfive:sfive "$LOG_D"
+exec chpst -u sfive:sfive svlogd -tt "$LOG_D"
diff --git a/contrib/runit/s5-nginx-lua/log/supervise b/contrib/runit/s5-nginx-lua/log/supervise
new file mode 120000
index 0000000..4c18f40
--- /dev/null
+++ b/contrib/runit/s5-nginx-lua/log/supervise
@@ -0,0 +1 @@
+/var/run/sv.s5-nginx-lua.log \ No newline at end of file
diff --git a/contrib/runit/s5-nginx-lua/run b/contrib/runit/s5-nginx-lua/run
new file mode 100755
index 0000000..acc94d9
--- /dev/null
+++ b/contrib/runit/s5-nginx-lua/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+exec 2>&1
+RUN_D="/var/run/sfive"
+HOSTNAME="streamer-pub1"
+STREAMER="av-dt,av-en/hls,dash/mini,low,medium,high"
+exec chpst -u sfive:sfive /usr/bin/s5-nginx-lua-fetch -s "$RUN_D"/pipe -n "$HOSTNAME" -u http://localhost/sfive -S "$STREAMER" -d 15
diff --git a/contrib/runit/s5-nginx-lua/supervise b/contrib/runit/s5-nginx-lua/supervise
new file mode 120000
index 0000000..35e19b7
--- /dev/null
+++ b/contrib/runit/s5-nginx-lua/supervise
@@ -0,0 +1 @@
+/var/run/sv.s5-nginx-lua \ No newline at end of file