diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/runit-scripts/runitscripts/services/mythbackend | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/mythbackend')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythbackend/log/run | 8 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythbackend/run | 31 |
2 files changed, 39 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/log/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/log/run new file mode 100755 index 0000000..17692a7 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/log/run @@ -0,0 +1,8 @@ +#!/bin/sh +exec 2>&1 +#export TERM=linux +#. /etc/rc.conf +#. /etc/rc.d/functions +#stat_runit "Starting MythBackend logger" +/usr/bin/logger -p local7.info -t mythbackend + diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run new file mode 100755 index 0000000..48c68d3 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -0,0 +1,31 @@ +#!/bin/sh +exec 2>&1 +. /etc/profile +. /etc/systemconfig +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions + +stat_runit "Starting MythBackend" +export HOME=/root +if [ ! x$SystemType = xSlave_backend ] +then + sv start mysql > /dev/null 2>/dev/null + #run mythfilldatabase + printhl " Running 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/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 su mythtv -c "/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log" +# fi |