Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9059 - Missing PID for /usr/bin/mythbackend in MythTV 0.20.2

Attached to Project: Arch Linux
Opened by Kevin Winter (kw) - Sunday, 30 December 2007, 20:10 GMT
Last edited by Jürgen Hötzel (juergen) - Wednesday, 02 April 2008, 20:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When mythbackend starts up its process ID is not captured in '/var/run/mythbackend.pid'

Detected in:
mythtv 0.20.2.20070828-2

Reason:
Process ID is not available when '/bin/pidof' is called in '/etc/rc.d/mythbackend'

Solution:
This can be fixed by asking mythbackend to create the PID file, see below for an example:

--- /etc/rc.d/mythbackend.orig 2007-12-30 19:22:26.000000000 +0000
+++ /etc/rc.d/mythbackend 2007-12-30 19:51:39.000000000 +0000
@@ -8,11 +8,10 @@
start)
stat_busy "Starting MythTV Backend"
[ ! -e /var/run/mysqld.pid ] && echo -n "mysqld not started" && stat_fail && exit
- [ -z "$PID" ] && /usr/bin/mythbackend -d -l /var/log/mythbackend.log -v important
+ [ -z "$PID" ] && /usr/bin/mythbackend -d -l /var/log/mythbackend.log -p /var/run/mythbackend.pid -v important
if [ $? -gt 0 ]; then
stat_fail
else
- echo $PID > /var/run/mythbackend.pid
add_daemon mythbackend
stat_done
fi
@@ -23,6 +22,7 @@
if [ $? -gt 0 ]; then
stat_fail
else
+ rm -f /var/run/mythbackend.pid &>/dev/null
rm_daemon mythbackend
stat_done
fi
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Wednesday, 02 April 2008, 20:05 GMT
Reason for closing:  Implemented
Comment by Paul Mattal (paul) - Thursday, 24 January 2008, 03:15 GMT
I just committed this to CVS. It will get released the next time mythtv is built.

Loading...