I had this exact same problem with my backend and I simply changed my init script around a bit to look like this, try it out for yourself:

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythbackend-0.18.2.rc,v 1.1 2005/12/26 09:15:30 cardoe Exp $

depend() {
        need net
        use mysql
}

start() {
        [[ -z "${MYTH_VERBOSE}" ]] && MYTH_VERBOSE="none"

        QTDIR=/usr/qt/3

        #fixes for bug #101308
        unset DISPLAY
        unset SESSION_MANAGER

        # Work around any strange permissions that may be on these files.
        chown -R mythtv /var/log/mythtv/
#       chown -R mythtv /etc/mythtv/

        ebegin "Starting MythTV Backend"
#         /usr/bin/mythbackend -l /var/log/mythtv/mythbackend.log -p /var/run/mythbackend.pid -v important,general,record -d
        /usr/local/bin/mythbackend -l /var/log/mythtv/mythbackend.log -p /var/run/mythbackend.pid -v important,general,record -d
        eend $?
}

stop () {
        ebegin "Stopping MythTV Backend"
        start-stop-daemon --stop --pidfile=/var/run/mythbackend.pid
        eend $?
}

_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to