#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ depend() { need mysql } start() { [ -z ${MYTH_LOG} ] && MYTH_LOG="/var/log/mythbackend.log" [ -z ${MYTH_PID} ] && MYTH_PID="/var/run/mythbackend.pid" ebegin "Starting myth backend" start-stop-daemon --start --quiet --exec /usr/bin/mythbackend \ -- --daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}" eend $? } stop () { [ -z ${MYTH_PID} ] && MYTH_PID="/var/run/mythbackend.pid" ebegin "Stopping myth backend" start-stop-daemon --stop --quiet --pidfile="${MYTH_PID}" eend $? }