[mythtv-commits] Ticket #10236: Systemd Mythbackend startup does not check for existing process
MythTV
noreply at mythtv.org
Tue Jan 3 16:36:33 UTC 2012
#10236: Systemd Mythbackend startup does not check for existing process
----------------------------------+----------------------------------
Reporter: newbury@… | Type: Patch - Bug Fix
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: Unspecified | Severity: medium
Keywords: | Ticket locked: 0
----------------------------------+----------------------------------
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)
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10236>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list