Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#33 closed patch (fixed)

SIGHUP log rotation

Reported by: Robert Tsai <rtsai1111> Owned by: Isaac Richards
Priority: minor Milestone: 0.19
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

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

without worrying about whether or not restarting mythbackend will interrupt any recordings, etc.

Attachments (1)

mythtv.logrotate.diff (2.5 KB) - added by Robert Tsai <rtsai1111> 19 years ago.

Download all attachments as: .zip

Change History (4)

Changed 19 years ago by Robert Tsai <rtsai1111>

Attachment: mythtv.logrotate.diff added

comment:1 Changed 19 years ago by jdonavan

Resolution: fixed
Status: newclosed

(In [6764]) SIGHUP handler to reopen the log file patch from Roberty Tsai slightly modified to do away with the strdup and associated free.

This close #33

comment:2 Changed 19 years ago by quaffapint@…

Resolution: fixed
Status: closedreopened

It looks like 'errno' and 'EINTR' are not defined which is preventing compiling of main.cpp (at least as of 9PM EST July 2nd, 2005). I will try to re-open this ticket just to make sure this is checked.

Thanks.

comment:3 Changed 19 years ago by jdonavan

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.