diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2009-11-21 05:28:37 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2009-11-21 05:28:37 +0000 |
commit | 224764d070bdb4824db13fe87edc296e33c6fa73 (patch) | |
tree | 8e2712995d59cad39d9fff721f1f5d8db8bc113e /media-plugins/mythvideo/files | |
parent | add initial version to the tree. bug #109719 (diff) | |
download | gentoo-2-224764d070bdb4824db13fe87edc296e33c6fa73.tar.gz gentoo-2-224764d070bdb4824db13fe87edc296e33c6fa73.tar.bz2 gentoo-2-224764d070bdb4824db13fe87edc296e33c6fa73.zip |
update upstream JAMU version. Improve JAMU support by installing depends (which are now in the tree) and optionally installing default cronjobs to do the right things with JAMU
(Portage version: 2.1.7.5/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/mythvideo/files')
-rw-r--r-- | media-plugins/mythvideo/files/mtd.init.d | 3 | ||||
-rw-r--r-- | media-plugins/mythvideo/files/mythvideo.daily | 7 | ||||
-rw-r--r-- | media-plugins/mythvideo/files/mythvideo.hourly | 7 | ||||
-rw-r--r-- | media-plugins/mythvideo/files/mythvideo.weekly | 6 |
4 files changed, 23 insertions, 0 deletions
diff --git a/media-plugins/mythvideo/files/mtd.init.d b/media-plugins/mythvideo/files/mtd.init.d index ada7cadb94ef..65a4d9c4eeb5 100644 --- a/media-plugins/mythvideo/files/mtd.init.d +++ b/media-plugins/mythvideo/files/mtd.init.d @@ -9,6 +9,9 @@ depend() { start() { + # necessary so it can read the correct mysql.txt + export HOME=/etc/mythtv/ + ebegin "Starting MythTV Transcoding Daemon" start-stop-daemon --start --quiet \ --exec /usr/bin/mtd \ diff --git a/media-plugins/mythvideo/files/mythvideo.daily b/media-plugins/mythvideo/files/mythvideo.daily new file mode 100644 index 000000000000..865cc7228769 --- /dev/null +++ b/media-plugins/mythvideo/files/mythvideo.daily @@ -0,0 +1,7 @@ +#!/bin/sh +#Daily maintenance mode for Jamu +DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}') +if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then + su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -M >> '/var/log/mythtv/jamu.log'" +fi + diff --git a/media-plugins/mythvideo/files/mythvideo.hourly b/media-plugins/mythvideo/files/mythvideo.hourly new file mode 100644 index 000000000000..ecb035d6b7a8 --- /dev/null +++ b/media-plugins/mythvideo/files/mythvideo.hourly @@ -0,0 +1,7 @@ +#!/bin/sh +#Hourly massive update to ensure users see graphics coming in for upcoming recordings and current recordings +DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}') +if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then + su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MW >> '/var/log/mythtv/jamu.log'" +fi + diff --git a/media-plugins/mythvideo/files/mythvideo.weekly b/media-plugins/mythvideo/files/mythvideo.weekly new file mode 100644 index 000000000000..9a27d1bbd9b0 --- /dev/null +++ b/media-plugins/mythvideo/files/mythvideo.weekly @@ -0,0 +1,6 @@ +#!/bin/sh +#Janitor mode to clean up stale stuff +DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}') +if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then + su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MJ >> '/var/log/mythtv/jamu.log'" +fi |