diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
4 files changed, 44 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/cetonproxy/finish b/abs/core/runit-scripts/runitscripts/services/cetonproxy/finish new file mode 100755 index 0000000..4d4d6da --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/cetonproxy/finish @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/bin/killall -9 balance diff --git a/abs/core/runit-scripts/runitscripts/services/cetonproxy/run b/abs/core/runit-scripts/runitscripts/services/cetonproxy/run new file mode 100755 index 0000000..c8c7fcf --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/cetonproxy/run @@ -0,0 +1,25 @@ +#!/bin/bash +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting Ceton bridge" +pid_string='' + +for i in `ls /etc/ceton_proxy.d/|sort -r` +do + . /etc/ceton_proxy.d/$i + #forcing foreground and then running with & is to capture the pid + balance -f $port $ip:80 >/dev/null & + stat_runit " proxy $ip on port $port" + pid=$! + pid_string="$pid_string $pid" +done + +if [ "x$pid_string" = "x" ] +then + sv stop cetonproxy +else + wait $pid_string +fi + diff --git a/abs/core/runit-scripts/runitscripts/services/infinitv_usb/log/run b/abs/core/runit-scripts/runitscripts/services/infinitv_usb/log/run new file mode 100755 index 0000000..f4de0e2 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/infinitv_usb/log/run @@ -0,0 +1,7 @@ +#!/bin/sh +exec 2>&1 +#export TERM=linux +#. /etc/rc.conf +#. /etc/rc.d/functions +/usr/bin/logger -p info -t infinitv_usb + diff --git a/abs/core/runit-scripts/runitscripts/services/infinitv_usb/run b/abs/core/runit-scripts/runitscripts/services/infinitv_usb/run new file mode 100755 index 0000000..e1f5764 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/infinitv_usb/run @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Start/stop the usb infinitv service +# + +. /etc/rc.conf +. /etc/rc.d/functions + +stat_runit "Starting InfinitTV_usb" +exec /usr/bin/infinitv_usbd |