summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/myth_mtc.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-10-10 03:28:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-10-10 03:28:50 (GMT)
commit3981e3bd46861efbe9cebe4a0cb106faa9033daa (patch)
treeef6d32ca5a3e99cb88f8c54720b9b6528904b006 /abs/core-testing/LinHES-system/myth_mtc.sh
parentbd5bf3ecdb7757918a4d12add60ae295c837a2b7 (diff)
downloadlinhes_pkgbuild-3981e3bd46861efbe9cebe4a0cb106faa9033daa.zip
linhes_pkgbuild-3981e3bd46861efbe9cebe4a0cb106faa9033daa.tar.gz
linhes_pkgbuild-3981e3bd46861efbe9cebe4a0cb106faa9033daa.tar.bz2
Scripts to make LinHES all that it will be.
sudo rules are installed via LinHES.install. Currently this allows mythtv to do anything. This will need to change in the future, but for now its ok. -myth_mtc.py is a script that will check to make sure myth is idle before running optimize_mythdb.py along with performing a nightly backup. Currently the backup is not functional, as it's waiting on the knoppmyth scripts. LinHES-start and LinHES-session start X and control whats run. Instead of using a .xinitrc for mythtv LinHES-start is systemwide. LinHES-profile.sh set's up the PATH for LinHES tools & scripts.
Diffstat (limited to 'abs/core-testing/LinHES-system/myth_mtc.sh')
-rwxr-xr-xabs/core-testing/LinHES-system/myth_mtc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-system/myth_mtc.sh b/abs/core-testing/LinHES-system/myth_mtc.sh
new file mode 100755
index 0000000..fc81254
--- /dev/null
+++ b/abs/core-testing/LinHES-system/myth_mtc.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+. /etc/profile
+date=`date +%Y-%m-%d`
+myth_mtc.py > /var/log/$date/myth_mtc.log
+if [ $? = 0 ]
+then
+ echo "Finished" >> /var/log/$date/myth_mtc.log
+else
+ echo "Time Exceede" >> /var/log/$date/myth_mtc.log
+fi
+
+