diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/runit/s5-nginx-lua/log/run | 9 | ||||
l--------- | contrib/runit/s5-nginx-lua/log/supervise | 1 | ||||
-rwxr-xr-x | contrib/runit/s5-nginx-lua/run | 8 | ||||
l--------- | contrib/runit/s5-nginx-lua/supervise | 1 | ||||
-rwxr-xr-x | contrib/runit/sfive-hub/log/run | 9 | ||||
l--------- | contrib/runit/sfive-hub/log/supervise | 1 | ||||
-rwxr-xr-x | contrib/runit/sfive-hub/run | 10 | ||||
l--------- | contrib/runit/sfive-hub/supervise | 1 |
8 files changed, 40 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 diff --git a/contrib/runit/sfive-hub/log/run b/contrib/runit/sfive-hub/log/run new file mode 100755 index 0000000..8e2f4b8 --- /dev/null +++ b/contrib/runit/sfive-hub/log/run @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +LOG_D="/var/log/sfive/hub" +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/sfive-hub/log/supervise b/contrib/runit/sfive-hub/log/supervise new file mode 120000 index 0000000..9bf2619 --- /dev/null +++ b/contrib/runit/sfive-hub/log/supervise @@ -0,0 +1 @@ +/var/run/sv.sfive-hub.log
\ No newline at end of file diff --git a/contrib/runit/sfive-hub/run b/contrib/runit/sfive-hub/run new file mode 100755 index 0000000..b9a6ccd --- /dev/null +++ b/contrib/runit/sfive-hub/run @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +exec 2>&1 +RUN_D="/var/run/sfive" +if [ ! -d "$RUN_D" ]; then + mkdir -p -m0750 "$RUN_D" +fi +chown sfive:sfive "$RUN_D" +exec chpst -u sfive:sfive /usr/bin/sfive-hub -bind="127.0.0.1:9000" diff --git a/contrib/runit/sfive-hub/supervise b/contrib/runit/sfive-hub/supervise new file mode 120000 index 0000000..81c1484 --- /dev/null +++ b/contrib/runit/sfive-hub/supervise @@ -0,0 +1 @@ +/var/run/sv.sfive-hub
\ No newline at end of file |