<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 11, 2021 at 3:00 PM Peter Carlsson <<a href="mailto:maillist.peter@home.se">maillist.peter@home.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><trimmed><br><div>
<br>
ps aux | grep mythexternrecorder<br>
root 15820 0.0 0.0 7868 676 pts/0 S+ 22:51 0:00 grep mythexternrecorder<br>
<br>
> What does the mythexternrecorder log file have in it?<br>
<br>
To be honest I have never really managed to have separate logs in<br>
/var/log/mythtv/ even though I have tried to.<br>
<br>
ls -ld /var/log/mythtv<br>
drwxr-sr-x 2 root adm 20480 feb 11 20:36 /var/log/mythtv<br>
<br>
ps ax | grep mythbackend | grep -v grep<br>
15605 ? Ssl 0:00 /usr/bin/mythbackend --logpath /var/log/mythtv/ --verbose channel,record<br>
<br>
systemctl status mythtv-backend<br>
● mythtv-backend.service - MythTV Backend<br>
Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor preset: enabled)<br>
Drop-In: /etc/systemd/system/mythtv-backend.service.d<br>
└─override.conf<br>
Active: active (running) since Thu 2021-02-11 22:42:27 CET; 1min 23s ago<br>
Docs: <a href="https://www.mythtv.org/wiki/Mythbackend" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Mythbackend</a><br>
<a href="https://www.mythtv.org/wiki/Mythbackend" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Mythbackend</a><br>
Main PID: 15605 (mythbackend)<br>
Tasks: 34 (limit: 4915)<br>
Memory: 44.0M<br>
CGroup: /system.slice/mythtv-backend.service<br>
└─15605 /usr/bin/mythbackend --logpath /var/log/mythtv/ --verbose channel,record<br>
<br>
cat /etc/rsyslog.d/mythtv-backend.conf<br>
$FileOwner mythtv<br>
$FileGroup mythtv<br>
$FileCreateMode 0644<br>
<br>
# Specify a log file name format. Ensure one of the following templates is<br>
# uncommented.<br>
# - Use a single log file for all logging from any MythTV application:<br>
#$template mythtvFile,"/var/log/mythtv/mythtv.log"<br>
# - Use a single log file per application:<br>
$template mythtvFile,"/var/log/mythtv/%programname%.log"<br>
# - Use a separate log file per process:<br>
#$template mythtvFile,"/var/log/mythtv/%programname%.%syslogtag:R,ERE,1,ZERO:\[([[:digit:]]{1,})\]--end%.log"<br>
<br>
# Send all logging on local6 facility to mythtvFile (filename created according<br>
# to the template specified, above), then discard (so the message is not also<br>
# written to system other log files).<br>
# This should catch any output from MythTV applications, assuming they are<br>
# started with:<br>
# --syslog local6<br>
local6.* ?mythtvFile<br>
& ~<br>
<br>
$FileOwner root<br>
$FileGroup adm<br>
$FileCreateMode 0640<br>
<br>
Thanks again!<br>
<br>
Best regards,<br>
Peter Carlsson<br></div></blockquote><div><br></div><div> <div>You don't have a mythtv user and group? I strongly recommend
having mythbackend, etc, run as mythtv:mythtv instead of root. You would
need to change the ownership of /var/log/mythtv accordingly. It is
very possible that is your whole problem. If mythexternrecorder does not
have permission to write its log files to the same directory as
mythbackend, it will refuse to run.</div><div>That being said, I don't
use syslog for mythbackend logs and have never tried to use
mythexternrecorder that way. I guess it should work, I just can't be
sure.</div><font color="#888888"><div><br></div><div>John</div></font></div></div></div>