Opened 12 years ago
Closed 12 years ago
#10236 closed Bug Report - General (Unverified)
Mythbackend not shutting down correctly
Reported by: | 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)
Change History (7)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → Invalid |
---|---|
Status: | new → closed |
Reported problem is in some code that does not exist anywhere in our source tree.
comment:3 Changed 12 years ago by
Resolution: | Invalid |
---|---|
Status: | closed → new |
Summary: | Systemd Mythbackend startup does not check for existing process → Mythbackend not shutting down correctly |
Type: | Patch - Bug Fix → Bug Report - General |
Version: | Unspecified → Trunk 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
Owner: | set to danielk |
---|---|
Status: | new → assigned |
comment:5 Changed 12 years ago by
Milestone: | unknown → 0.25 |
---|---|
Status: | assigned → infoneeded |
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
Resolution: | → Unverified |
---|---|
Status: | infoneeded → closed |
No reply in 5 weeks.
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?