Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#3187 closed defect (invalid)

logrotate does not send SIGHUP to mythbackend (fedora core)

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.19
Severity: medium Keywords: mythbackend.log
Cc: Ticket locked: no

Description

logrotate does not send SIGHUP to mythbackend (on my fedora core 6 box)

/etc/logrotate.d/mythbackend is:

/var/log/mythtv/mythbackend.log {

notifempty missingok compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressext .bz2 weekly rotate 4 size 10M

}

and could be:

# cat mythbackend /var/log/mythtv/mythbackend.log {

notifempty missingok compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressext .bz2 weekly rotate 4 size 10M

postrotate

/bin/kill -HUP cat /var/run/mythbackend.pid 2> /dev/null 2>

/dev/null
true

endscript

}

Change History (3)

comment:1 Changed 13 years ago by Janne Grunau

Resolution: invalid
Status: newclosed

the logrotate config is not part of mythtv. please report to fedora

comment:2 Changed 13 years ago by Axel.Thimm@…

Version: head0.19

The Fedora packages already contain the following since 0.19-130 (Jul 31 2006):

$ grep -1 HUP /etc/logrotate.d/mythbackend
    postrotate
       /bin/kill -HUP `cat /var/run/mythbackend.pid 2>/dev/null` 2> /dev/null || true
    endscript

There have been a major mythtv upstream update (0.20) and 23 updates to the mythtv packages since . :)

comment:3 in reply to:  description Changed 10 years ago by anonymous

Replying to anonymous:

logrotate does not send SIGHUP to mythbackend (on my fedora core 6 box)

/etc/logrotate.d/mythbackend is:

/var/log/mythtv/mythbackend.log {

notifempty missingok compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressext .bz2 weekly rotate 4 size 10M

}

and could be:

# cat mythbackend /var/log/mythtv/mythbackend.log {

notifempty missingok compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressext .bz2 weekly rotate 4 size 10M

postrotate

/bin/kill -HUP cat /var/run/mythbackend.pid 2> /dev/null 2>

/dev/null
true

endscript

}

Note: See TracTickets for help on using tickets.