diff options
author | James Meyer <james.meyer@operamail.com> | 2014-01-05 21:34:59 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-01-05 21:34:59 (GMT) |
commit | 402197f50ec8843de08d28a16eaefc15f3dee226 (patch) | |
tree | 23bdd770c1257a373f7ef218fb1336fa890c512a /abs/core/LinHES-system/LinHES-session | |
parent | b41855ed0f9cd489fe3d9af1acd6e6b2fd80e922 (diff) | |
download | linhes_pkgbuild-402197f50ec8843de08d28a16eaefc15f3dee226.zip linhes_pkgbuild-402197f50ec8843de08d28a16eaefc15f3dee226.tar.gz linhes_pkgbuild-402197f50ec8843de08d28a16eaefc15f3dee226.tar.bz2 |
LinHES-session: stop mythfilldatabase from running on new slave installs.
refs #953
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-x | abs/core/LinHES-system/LinHES-session | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session index c6d0b09..14606fb 100755 --- a/abs/core/LinHES-system/LinHES-session +++ b/abs/core/LinHES-system/LinHES-session @@ -229,8 +229,13 @@ function first_configure_default(){ xterm -fn *18* -e sudo taskset -c 0 /usr/bin/mythtv-setup sudo sv start mythbackend sudo chown -R mythtv.mythtv /home/mythtv - nice -n 19 mythfilldatabase --quiet & - msg "Guide data is being loaded.\nUntil this completes\nsome shows will appear as "unknown"\nin the program guide." + # only run mythfilldatabase for masterbackends + if [ $SystemType = "Master_backend" ] + then + nice -n 19 mythfilldatabase --quiet & + msg "Guide data is being loaded.\nUntil this completes\nsome shows will appear as "unknown"\nin the program guide." + fi + rm ~/.configure fi else @@ -268,8 +273,12 @@ function first_configure_mv(){ /usr/bin/taskset -c 0 /usr/bin/mythtv-setup /usr/MythVantage/bin/backend_control.sh start BE 127.0.0.1 fi - nice -n 19 mythfilldatabase --quiet & - msg "Guide data is being loaded.\nUntil this completes\nsome shows will appear as "unknown"\nin the program guide." + # only run mythfilldatabase for masterbackends + if [ $SystemType = "Master_backend" ] + then + nice -n 19 mythfilldatabase --quiet & + msg "Guide data is being loaded.\nUntil this completes\nsome shows will appear as "unknown"\nin the program guide." + fi rm -f ~/.configure fi else |