[mythtv-users] Logging doesn't work

Bill Meek keemllib at gmail.com
Sun Sep 17 13:17:14 UTC 2017


On 09/17/2017 02:10 AM, Enno Middelberg wrote:
> Hello,
> 
> I'm using MythTV 0.29 as it ships with Debian Testing. It used to run
> fine for a long time, but stopped working after a recent upgrade. I'm
> trying to debug it, but can't get logging to work.
> 
> There simply are no logs anywhere. Appending "--syslog" to the service
> (in /etc/init.d/ythtv-backend) doesn't make logs appear in syslog, and
> providing --logpath also doesn't change things.
> 
> When I start mythbackend in the terminal I get logging information, so
> it seems to work in principle. /var/log/mythtv exists and is writeable
> for user mythtv, which owns the backend process.
> 
> Where do I need to look to get this to work?

Hi,

You may be looking in the wrong place (logging works great
as you saw from the command line test.)

I'd try this: $ systemctl cat mythtv-backend

And expect to see a line similar to:

     # /etc/systemd/system/mythtv-backend.service

I believe if a .service file exists, then it will be preferred
to an entry in /etc/init.d (it does for me.)

Also, try: $ systemctl status mythtv-backend
to verify where your service is being loaded,
e.g.:

    Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)

-- 
Bill


More information about the mythtv-users mailing list