summaryrefslogtreecommitdiff
path: root/contrib/runit
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-22 06:21:44 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-22 06:21:44 +0200
commite6a34f2c9397f27051faf0df5131881983f9148b (patch)
tree639551cbbe9305d28457f04532f56e5c5055040a /contrib/runit
parentupdated changelog for release (diff)
added sample runit configs
Diffstat (limited to 'contrib/runit')
-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
-rwxr-xr-xcontrib/runit/sfive-hub/log/run9
l---------contrib/runit/sfive-hub/log/supervise1
-rwxr-xr-xcontrib/runit/sfive-hub/run10
l---------contrib/runit/sfive-hub/supervise1
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