[mythtv] Re: [mythtv-commits] Ticket #33: SIGHUP log rotation

Kyle Rose krose+mythtv at krose.org
Sat Jul 2 14:10:59 EDT 2005


MythTV wrote:
> #33: SIGHUP log rotation
> --------------------+-------------------------------------------------------
>        Id:  33      |      Status:  new                     
> Component:  mythtv  |    Modified:  Fri Jul  1 21:53:19 2005
>  Severity:  low     |   Milestone:  0.19                    
>  Priority:  minor   |     Version:  head                    
>     Owner:  ijr     |    Reporter:  Robert Tsai <rtsai1111> 
> --------------------+-------------------------------------------------------
>  This patch is taken from http://www.gossamer-
>  threads.com/lists/mythtv/dev/110113
> 
>  It adds a SIGHUP handler to mythbackend for rotating logfiles in response
>  to a SIGHUP, so that a logrotate.d "postrotate" script can do:
> 
>    kill `cat /var/run/mythbackend.pid`

Just to be clear, you probably want to kill -HUP, not just kill (-TERM). :)

Thanks for committing this, BTW; it was my only remaining uncommitted
patch for mythbackend.

Cheers,
Kyle


More information about the mythtv-dev mailing list