Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12621 closed Bug Report - General (fixed)

Mythbackend claims it rotates logs on SIGHUP, but it doesn't

Reported by: goeran@… Owned by: John Poet <jpoet@…>
Priority: minor Milestone: 0.28
Component: MythTV - General Version: 0.27.4
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The output of mythbackend --help claims the process will reload the log file when it receives a HUP signal. Several pages in the wiki also gives instructions on sending HUP signals in logrotate scripts.

But that rotation does not happen. Actually, mythbackend simply ignores the signal, judging by the contents of /proc/<pid>/status. I've taken a look in the code, and the call to ignore the signal is easily found in mythbackend/main.cpp. I've tried find in the code some other way to trigger a log reopen but haven't seen anything. Is there a way?

Change History (8)

comment:1 Changed 4 years ago by Stuart Auchterlonie

Status: newinfoneeded_new

What version is this with?

comment:2 Changed 4 years ago by goeran@…

Version 0.27.4.

(I could have sworn I entered that in the menu! But I see it says Unspecified now.)

comment:3 Changed 4 years ago by Stuart Auchterlonie

Milestone: unknown0.28
Version: Unspecified0.27.4

comment:4 Changed 4 years ago by Stuart Auchterlonie

Status: infoneeded_newnew

comment:5 Changed 4 years ago by sphery

comment:6 Changed 4 years ago by John Poet <jpoet@…>

Owner: set to John Poet <jpoet@…>
Resolution: fixed
Status: newclosed

In 44789d8764ffaa183ae53de15739510ca742803d/mythtv:

Finish fixing log rotation. mythbackend was done in [d674942625].

Fixes #12621

comment:7 Changed 4 years ago by John Poet <jpoet@…>

In 34c7003b0dc084def276c1faec95c90f4d8dcf44/mythtv:

Finish fixing log rotation. mythbackend was done in [d674942625].

Fixes #12621

(cherry picked from commit 44789d8764ffaa183ae53de15739510ca742803d)

comment:8 Changed 4 years ago by John Poet <jpoet@…>

In e01a9612ea8e47b69df3cfb958b948a7f18e733a/mythtv:

Finish fixing log rotation. mythbackend was done in [d674942625].

Fixes #12621

(cherry picked from commit 44789d8764ffaa183ae53de15739510ca742803d)

Note: See TracTickets for help on using tickets.