diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-23 03:47:32 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-23 03:47:32 (GMT) |
commit | a73aa26202d19da424722bcf1285b566dbfd9d8d (patch) | |
tree | cc24843c13127ef3b5d8207aa7c82be0b1f00d37 /abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend | |
parent | a1219610c24fc89e2e4c1b81194fe25e40933cf5 (diff) | |
download | linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.zip linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.gz linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.bz2 |
add mythvantage specific packages.
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend')
-rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/log/run | 4 | ||||
-rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/run | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/log/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/log/run new file mode 100755 index 0000000..6ed5184 --- /dev/null +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/log/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 + /usr/bin/logger -p local7.info -t mythbackend + diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/run new file mode 100755 index 0000000..1315006 --- /dev/null +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/mythbackend/run @@ -0,0 +1,25 @@ +#!/bin/sh +exec 2>&1 +. /etc/profile +. /etc/systemconfig +export HOME=/root +if [ ! x$SystemType = xSlave_backend ] +then + sv start mysql > /dev/null 2>/dev/null + #run mythfilldatabase + /usr/MythVantage/bin/initial_db_run & +fi +mkfifo /tmp/mbefifo >/dev/null 2>/dev/null +echo "Starting mythbackend" + if [ -f /tmp/debug ] + then + echo "using gbd/debug" + gdb /usr/local/bin/mythbackend -x $MV_ROOT/mbegdbcommands.txt + bash -c "osdClient.pl localhost 5000 'Restart gdb mbe :::SYS' "& + mv gdb.txt /data/home/mythtv/gdb.txt.mythbackend + chown mythtv:mythtv /data/home/mythtv/gdb.txt.mythbackend + sleep 10 + + else + exec /usr/local/bin/mythbackend + fi |