LinHES Forums http://forums.linhes.org/ |
|
Backend Logging to Database http://forums.linhes.org/viewtopic.php?f=21&t=23777 |
Page 1 of 1 |
Author: | tscholl [ Sun Jun 23, 2013 12:53 pm ] |
Post subject: | Backend Logging to Database |
Can anyone point me to the screen in R8 that controls backend logging to the database? It use to be on the General page of the Setup Menu. Thanks |
Author: | jams [ Sun Jun 23, 2013 12:59 pm ] |
Post subject: | Re: Backend Logging to Database |
edit /etc/conf.d/mythbackend|mythfrontend and add --nodblog or other options that fits your needs. |
Author: | tscholl [ Sun Jun 23, 2013 1:29 pm ] |
Post subject: | Re: Backend Logging to Database |
Jams, I looked in /etc/conf.d/ but have no entry for mythbackend or mythfrontend |
Author: | jams [ Sun Jun 23, 2013 3:56 pm ] |
Post subject: | Re: Backend Logging to Database |
The files are optional, but they do get sourced by the backend and frontend service if present. Just create them and add whatever options. Below are the default values. [root@onynx sv]# cat /etc/conf.d/mythbackend MYTH_ARGS="-q --syslog local6 channel" and this is the default for mythfrontend. MYTH_ARGS="-d --syslog local6" |
Author: | tscholl [ Sun Jun 23, 2013 6:24 pm ] |
Post subject: | Re: Backend Logging to Database |
Will that also take care of the "Backend Logs" heading in mythweb as well? |
Author: | tscholl [ Mon Jun 24, 2013 2:55 pm ] |
Post subject: | Re: Backend Logging to Database |
I created a /etc/conf.d/mythbackend file with the following entry. Code: MYTH_ARGS="-q --syslog --nodblog local6 channel" Then rebooted the box looks like it it still logging though. ps -ef |grep mythbackend returns Code: root 626 603 0 16:34 ? 00:00:00 runsv mythbackend root 647 626 0 16:34 ? 00:00:00 su mythtv -c /usr/bin/mythbackend -q --syslog local6 mythtv 3120 647 7 16:34 ? 00:01:09 /usr/bin/mythbackend -q --syslog local6 root 4243 3930 0 16:50 pts/1 00:00:00 grep mythbackend So for some reason it's not picking up the contents of file created in /etc/conf.d/mythbackend Any ideas? |
Author: | jams [ Mon Jun 24, 2013 4:12 pm ] |
Post subject: | Re: Backend Logging to Database |
oops you found a bug #first remove channel from the MYTH_ARGS line that was leftover from my testing the service script sources conf.d/mythbackend but never makes use of it 1) edit /etc/sv/mythbackend/run 2) At the very bottom of the file the following snippit and make the change as shown. 3) reboot OR run remove_service.sh mythbackend ; add_service.sh mythbackend Code: if pacman -Q mythtv | grep -q 0.24
then exec su mythtv -c "/usr/bin/mythbackend --logfile /var/log/mytht v/mythbackend.log" else #exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" <<===change this line to look like the one below exec su mythtv -c "/usr/bin/mythbackend $MYTH_ARGS" fi # fi ~ |
Author: | tscholl [ Sat Jul 06, 2013 11:33 am ] |
Post subject: | Re: Backend Logging to Database |
Made the changes you suggested, however now mythbackend never starts. If I grep mythbackend I get. Code: [root@mythtv2 ~]# ps -ef | grep mythbackend
root 712 691 0 13:28 ? 00:00:00 runsv mythbackend root 2820 2763 0 13:29 pts/1 00:00:00 grep mythbackend |
Author: | jams [ Sun Jul 07, 2013 11:42 am ] |
Post subject: | Re: Backend Logging to Database |
try running /etc/sv/mythbackend/run from the console and see what output it gives. Also might be useful to echo out the contents of $MYTH_ARGS or add set -x to the top of the run script (for testing purposes only) |
Author: | tscholl [ Sun Jul 07, 2013 12:04 pm ] |
Post subject: | Re: Backend Logging to Database |
I'll give that a shot. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |