[mythtv-users] mythbackend not starting on mythbuntu ubuntu 13.10

Bill Meek keemllib at gmail.com
Sun Feb 9 14:31:37 UTC 2014


On 02/09/2014 05:54 AM, Chris Lewis wrote:
> Actually never mind.I have replaced the entire file with the one in the
> link above and it seems to be working now!
>
> Chris
>
>
> On 9 February 2014 11:40, Chris Lewis <chrislewis915 at gmail.com> wrote:
>
>> OK i have added comments to the file /etc/init/mythtv-backend.conf as
>> below.
>>
>> # MythTV Backend service
>>
>> description     "MythTV Backend"
>> author          "Mario Limonciello <superm1 at ubuntu.com>"
>>
>> echo "job called" >> /home/chris/backend-startup.log
>>
>> start on (local-filesystems and net-device-up IFACE!=lo and started
>> udev-finish)
>> stop on runlevel [016]
>>
>> echo "start on working" >> /home/chris/backend-startup.log
>>
>> #expect fork
>> kill timeout 10
>> respawn
>> respawn limit 2 3600
>>
>> echo "backend pre-start script begins" >> /home/chris/backend-startup.log
>>
>> pre-start script
>>      [ -x /usr/sbin/mysqld ] || exit 0
>>      for i in `seq 1 30` ; do
>>         /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping &&
>> exit 0
>>         sleep 5
>>      done
>> end script
>>
>> echo "script begins" >> /home/chris/backend-startup.log
>>
>> script
>>          ulimit -c unlimited
>>
>>          test -f /etc/default/locale && . /etc/default/locale || true
>>          ARGS="--syslog local7"
>>          sleep 5
>>          test -f /etc/default/mythtv-backend && .
>> /etc/default/mythtv-backend || true
>>          LANG=$LANG exec /usr/bin/mythbackend --user mythtv $ARGS
>> $EXTRA_ARGS
>> end script

Good to hear you got it working, but for the archive, the echo (or
any other shell commands) must be *inside* of the scripts. The above
will always fail.

-- 
Bill


More information about the mythtv-users mailing list