#!/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.3 2006/01/11 17:57:48 cardoe Exp $ depend() { need net use mysql } start() { [[ -z "${MYTH_VERBOSE}" ]] && MYTH_VERBOSE="none" QTDIR=/usr/qt/3 HOME=/etc/mythtv #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/ rm -rf /etc/mythtv/.qt ebegin "Starting MythTV Backend" screen -dmS mythbackend mythbackend # start-stop-daemon --start --quiet --chuid mythtv \ # --exec screen -dmS mythbackend mythbackend \ # --background -- --verbose ${MYTH_VERBOSE} \ # --logfile /var/log/mythtv/mythbackend.log eend $? } stop () { ebegin "Stopping MythTV Backend" start-stop-daemon --stop --quiet --pidfile=/var/run/mythbackend.pid eend $? }