[mythtv-users] Running optmize_mythdb from cron script (ATRPMS base)

Axel Thimm Axel.Thimm at ATrpms.net
Fri May 5 06:40:47 EDT 2006


On Fri, May 05, 2006 at 09:11:08AM +0100, Greg Cope wrote:
> Hi All,
> 
> I have made a few scripts to run optimize_mythdb from cron daily, and
> rotate the logs.
> 
> It is for FC4 ATRPMS,
> 
> First make it executatble;
> 
> chmod 755 /usr/share/doc/mythtv-0.19/contrib/optimize_mythdb.pl
> 
> ###### optimize_mythdb.sh
> #!/bin/sh
> 
> OPT_MYTHDB='/usr/share/doc/mythtv-0.19/contrib/optimize_mythdb.pl'
> LOG='/var/log/mythtv/optimize_mythdb.log'
> 
> echo "Started ${OPT_MYTHDB} on `date`" >> ${LOG}
> ${OPT_MYTHDB}  >> ${LOG}
> echo "Finished  ${OPT_MYTHDB} on `date`" >> ${LOG}
> 
> ###### cat optimize_mythdb
> /var/log/mythtv/optimize_mythdb.log {
>     notifempty
>     missingok
>     compress
>     compresscmd /usr/bin/bzip2
>     uncompresscmd /usr/bin/bunzip2
>     compressext .bz2
>     weekly
>     rotate 4
> }
> 
> Alex, if your reading - fancy incorporating it into atrpms?

Can't speak for Alex, but I'd prefer this to be decided by the
developers. If they consider it of "contrib" value, then ATrpms should
do the same. When they decide to install it within the installtion
procedure ATrpms would pick it up.

Maybe the above is nice for adding to Jarod's guide?
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20060505/f4796956/attachment.pgp 


More information about the mythtv-users mailing list