[mythtv] Mythbackend Fails to start with --generate-preview error

Michael T. Dean mtdean at thirdcontact.com
Wed Mar 12 16:20:15 UTC 2008


On 03/12/2008 10:27 AM, David George wrote:
> On 03/12/2008 10:08 AM, R. G. Newbury wrote:
>> 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 &&) ..
> 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.

Got any MBE_OPTIONS?  Like, perhaps, --generate-preview?

Stick an echo before the "daemon ..." line and "> /tmp/mbestartlog" 
after the $MBE_OPTIONS and then reboot the machine to catch it in its 
normal environment.

Mike



More information about the mythtv-dev mailing list