<!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? I keep
on getting an error that says:</FONT></SPAN></DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial
size=2></FONT></SPAN> </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> </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> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>I can't figure out
what the dependency is for mythbackend to start. 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> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>#!/bin/sh<BR>###
BEGIN INIT INFO<BR># Provides:
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: 3 5<BR># Default-Stop: 0 1 2
6<BR># Description: MythTV Backend server<BR>### END INIT
INFO</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2># Source config file
if available<BR>if [ -f "/etc/sysconfig/mythbackend" ]; then<BR> .
/etc/sysconfig/mythbackend<BR>fi</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>test -x
${MBE_LOCATION}${MBE_PROG} || exit 5</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>.
/etc/rc.status</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2># First reset status
of this service<BR>rc_reset</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial
size=2>#<BR># See how we were
called.<BR>#</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial size=2>case "$1"
in<BR> start)<BR> #
Check if mythbackend is already
running<BR> if [ ! -f
/var/lock/subsys/${MBE_PROG} ] ;
then<BR> echo
-n "Starting ${MBE_PROG}:
"<BR> #
/usr/local/bin/mythbackend -d -l
/some/log/file<BR>
startproc -f -u ${MBE_USER} ${MBE_LOCATION}${MBE_PROG} -d -l
${MBE_LOGFILE}<BR>
fi<BR> rc_status
-v<BR> ;;<BR>
stop)<BR> echo -n "Shutting down
${MBE_PROG}"<BR> killproc
${MBE_LOCATION}${MBE_PROG}
<BR> rc_status
-v<BR> ;;<BR>
restart)<BR> $0
stop<BR> $0 start</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=044313006-06052005><FONT face=Arial
size=2>
rc_status<BR> ;;<BR>
status)<BR> checkproc
${MBE_LOCATION}${MBE_PROG}<BR>
rc_status -v<BR>
;;<BR> *)<BR> echo
"Usage: $0
{start|stop|status|restart}"<BR> exit
1<BR>
;;<BR>esac<BR>rc_exit<BR></FONT></SPAN></DIV></BODY></HTML>