Opened 12 years ago

Closed 12 years ago

#10236 closed Bug Report - General (Unverified)

Mythbackend not shutting down correctly

Reported by: newbury@… Owned by: danielk
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The systemd mythbackend.service unit uses ExecStartPre?=/usr/local/bin/pre-start.sh

The pre-start.sh script does not check to determine if there is already a running mythbackend process and allows the start of a new duplicate process. This is a bug.

Adding this to the start of the script will ensure a clean start.

# kill any running mythbackend process. if [ -e /var/run/mythtv/mythbackend.pid ]; then

killall mythbackend;

fi

(Borrowed from the sysv init mysqld startup script)

Attachments (1)

backtrace.txt (58.8 KB) - added by beirdo 12 years ago.
Backtrace

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by Raymond Wagner

Is this actually a MythTV problem? The only two init scripts we host are ones in the Gentoo and rpm sections of the packaging repo, and neither of them seem to line up with what you're talking about. What file needs to be changed?

comment:2 Changed 12 years ago by Raymond Wagner

Resolution: Invalid
Status: newclosed

Reported problem is in some code that does not exist anywhere in our source tree.

comment:3 Changed 12 years ago by beirdo

Resolution: Invalid
Status: closednew
Summary: Systemd Mythbackend startup does not check for existing processMythbackend not shutting down correctly
Type: Patch - Bug FixBug Report - General
Version: UnspecifiedTrunk Head

Seems that the actual issue is that mythbackend won't shut down cleanly for him, and seems (at first glance) to be perhaps related to checking if a recording is damaged, keeping TVRec from shutting down.

From the follow-on discussion on the mailing list (by Karl Dietz)

here's a backtrace http://paste.ubuntu.com/794362/

mythbackend is keeping one cpu busy at that point in time and the recordings view in mythweb shows one recording from yesterday as still running, but no recorder is in use...

MythTV Version: v0.25pre-3937-g0297b3a => December 23rd, time to update?

MythTV Branch : master

comment:4 Changed 12 years ago by beirdo

Owner: set to danielk
Status: newassigned

Changed 12 years ago by beirdo

Attachment: backtrace.txt added

Backtrace

comment:5 Changed 12 years ago by danielk

Milestone: unknown0.25
Status: assignedinfoneeded

What is the signal being sent to the backend? Is the backend actually recording when the signal is sent or not?

comment:6 Changed 12 years ago by danielk

Resolution: Unverified
Status: infoneededclosed

No reply in 5 weeks.

Note: See TracTickets for help on using tickets.