diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-01-15 19:23:33 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-01-15 19:23:33 (GMT) |
commit | 384da89ebb8060c6c8f20aaffcf17e1feab56374 (patch) | |
tree | fe9a90f79c03233198ab4692d4142cbc98deea6e /abs/core/LinHES-system/myth_mtc.cron | |
parent | bd99523adf334481f5e09ed8d52ce82d121e1e65 (diff) | |
download | linhes_pkgbuild-384da89ebb8060c6c8f20aaffcf17e1feab56374.zip linhes_pkgbuild-384da89ebb8060c6c8f20aaffcf17e1feab56374.tar.gz linhes_pkgbuild-384da89ebb8060c6c8f20aaffcf17e1feab56374.tar.bz2 |
LinHES-system: myth_mtc.cron: don't run optimize on frontend_only systems
myth_mtc.py: add --noidlecheck option to not check forsystem idle. This is probably wise to only use for testing.
Diffstat (limited to 'abs/core/LinHES-system/myth_mtc.cron')
-rwxr-xr-x | abs/core/LinHES-system/myth_mtc.cron | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/myth_mtc.cron b/abs/core/LinHES-system/myth_mtc.cron index ff8e84a..6d70058 100755 --- a/abs/core/LinHES-system/myth_mtc.cron +++ b/abs/core/LinHES-system/myth_mtc.cron @@ -1,5 +1,6 @@ #!/bin/bash MYTH_RUN_STATUS=1 +. /etc/systemconfig . /etc/profile date=`date +%Y-%m-%d` @@ -31,13 +32,19 @@ then if ! grep -q "Finished Optimize" $logFile then - MYTHCONFDIR=/usr/share/mythtv unbuffer myth_mtc.py --optimize | $log - if [ $? = 0 ] + if [ $SystemType = Frontend_only ] then - echo "" | $log + echo "Will not run Optimize on Frontend Only systems." | $log + echo "Finished Optimize" | $log else - echo "Time Exceeded" | $log - exit + MYTHCONFDIR=/usr/share/mythtv unbuffer myth_mtc.py --optimize | $log + if [ $? = 0 ] + then + echo "" | $log + else + echo "Time Exceeded" | $log + exit + fi fi fi |