[mythtv] Mythbackend Fails to start with --generate-preview error
David George
david at thegeorges.us
Wed Mar 12 14:27:07 UTC 2008
On 03/12/2008 10:08 AM, R. G. Newbury wrote:
> I have already looked at the init. It is the standard fedora script. I
> have checked the defaults in /etc/sysconfig/mythbackend, and tried with
> that file, and with just the defaults in the init.
>
Definitely strange. I just checked my Fedora 8 backend running trunk
16519 (now, I upgrade trunk about once a month, so probably have used
versions close to the ones you have tried) and I am using the exact init
script from contrib, so it does work. Other than a contrib reorg in
16474, looks like the last change to fedora.init.backend was in 14222.
> So what exactly do you suggest, and exactly where in the script?
> Looking at it, this script is quite different than the script from a
> year ago.
> Since it attempts to start, the problem is somewhere in here:
> (User is root, mbe_bin is /usr/local/bin/mythbackend (only one on the
> machine! I checked! mbe_options is empty at the moment)
>
> # Start
> echo -n $"Starting $MBE_PROG: "
> touch "/var/run/$MBE_PROG.pid"
> chown "$MBE_USER":"$MBE_USER" "/var/run/$MBE_PROG.pid"
> daemon --user "$MBE_USER" "$MBE_BIN" \
> --daemon \
> --logfile "$LOG_DIR/$LOG_FILE" "$LOG_OPTS" \
> --pidfile "/var/run/$MBE_PROG.pid" \
> $MBE_OPTIONS
> RETVAL=$?
> [ $RETVAL = 0 ] && touch /var/lock/subsys/$MBE_PROG
> echo
> return $RETVAL
> }
>
> What if, instead of using daemon I just call mythbackend with log and
> pid options (and &&) ..Hmm, I do not have a daemon binary on this
> laptop...Running Fedora 8 as at home. And there is no package 'daemon'
> available if I 'yum install daemon'. Ok definitely weird as the old
> version starts and runs, but the new ones don't.
>
>
daemon is a shell function that is included in Fedora init scripts from
/etc/init.d/functions.
You could try the following from the command line and see what you get:
mythbackend --daemon --logfile /var/log/mythtv/mythbackend.log -v
important,general --pidfile /var/run/mythbackend.pid
Make sure you 'service mythbackend stop' first to make sure any old pid
and lock files are removed if they exist.
--
David
More information about the mythtv-dev
mailing list