Comment 2 for bug 541042

Revision history for this message
Eduard Iten (eiten) wrote : Re: locale is not set up before mythtv-backend start

OK, i found a way to fix it for all locales:
####################################################################
# /etc/init/mythtv-backend.conf
####################################################################
# MythTV Backend service

description "MythTV Backend"
author "Mario Limonciello <email address hidden>"

start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown

#expect fork
respawn

script
        USER=mythtv
        ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
        test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
        test -f /etc/default/locale && . /etc/default/locale || true
        LANG=$LANG LC_ALL=$LANG /usr/bin/mythbackend $ARGS
end script
####################################################################