<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>Has anyone gotten 
mythbackend to start correctly through init.d scripts on SuSe 9.2?&nbsp; I keep 
on getting an error that says:</FONT></SPAN></DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>2005-05-05 
22:14:07.590 New DB connection, total: 1<BR>2005-05-05 22:14:07.597 Unable to 
connect to database!<BR>2005-05-05 22:14:07.597 Driver error was 
[1/2002]:<BR>QMYSQL3: Unable to connect</FONT></SPAN></DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>Database error was: 
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 
(2)</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>2005-05-05 
22:14:07.605 Failed to init MythContext, exiting.<BR></FONT></SPAN></DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>I can't figure out 
what the dependency is for mythbackend to start.&nbsp; This is the script I'm 
using right now is a modified one from the contrib 
directory.</FONT></SPAN></DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>#!/bin/sh<BR>### 
BEGIN INIT INFO<BR># Provides:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
mythbackend<BR># Required-Start: $mysql $network $local_fs $remote_fs<BR># 
X-UnitedLinux-Should-Start: <BR># Required-Stop: $mysql $network $local_fs 
$remote_fs<BR># Default-Start:&nbsp; 3 5<BR># Default-Stop:&nbsp;&nbsp; 0 1 2 
6<BR># Description:&nbsp;&nbsp;&nbsp; MythTV Backend server<BR>### END INIT 
INFO</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2># Default values to 
use if none are supplied in the config file.<BR># User who should start the 
mythbackend processes<BR>MBE_USER="root"<BR># Directory holding the mythbackend 
binary<BR>MBE_LOCATION="/usr/local/bin/"<BR># Name of mythbackend 
binary<BR>MBE_PROG="mythbackend"<BR># Full path to mythbackend log 
file<BR>MBE_LOGFILE="/var/log/mythbackend.log"</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2># Source config file 
if available<BR>if [ -f "/etc/sysconfig/mythbackend" ]; then<BR>&nbsp; . 
/etc/sysconfig/mythbackend<BR>fi</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>test -x 
${MBE_LOCATION}${MBE_PROG} || exit 5</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>. 
/etc/rc.status</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2># First reset status 
of this service<BR>rc_reset</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial 
size=2>#<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See how we were 
called.<BR>#</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>case "$1" 
in<BR>&nbsp;&nbsp;&nbsp; start)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
Check if mythbackend is already 
running<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ ! -f 
/var/lock/subsys/${MBE_PROG} ] ; 
then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo 
-n "Starting ${MBE_PROG}: 
"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
/usr/local/bin/mythbackend -d -l 
/some/log/file<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
startproc -f -u ${MBE_USER} ${MBE_LOCATION}${MBE_PROG} -d -l 
${MBE_LOGFILE}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fi<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc_status 
-v<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<BR>&nbsp;&nbsp;&nbsp; 
stop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n "Shutting down 
${MBE_PROG}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; killproc 
${MBE_LOCATION}${MBE_PROG}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc_status 
-v<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<BR>&nbsp;&nbsp;&nbsp; 
restart)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 
stop<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 start</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
rc_status<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<BR>&nbsp;&nbsp;&nbsp; 
status)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkproc 
${MBE_LOCATION}${MBE_PROG}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
rc_status -v<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
;;<BR>&nbsp;&nbsp;&nbsp; *)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo 
"Usage: $0 
{start|stop|status|restart}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
;;<BR>esac<BR>rc_exit<BR></FONT></SPAN></DIV></BODY></HTML>