Author |
Message |
tscholl
|
Posted: Sun Jun 23, 2013 12:53 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
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
Last edited by tscholl on Sun Jun 23, 2013 6:27 pm, edited 1 time in total.
|
|
Top |
|
 |
jams
|
Posted: Sun Jun 23, 2013 12:59 pm |
|
 |
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
edit /etc/conf.d/mythbackend|mythfrontend and add --nodblog or other options that fits your needs.
|
|
Top |
|
 |
tscholl
|
Posted: Sun Jun 23, 2013 1:29 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
Jams,
I looked in /etc/conf.d/ but have no entry for mythbackend or mythfrontend
|
|
Top |
|
 |
jams
|
Posted: Sun Jun 23, 2013 3:56 pm |
|
 |
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
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"
|
|
Top |
|
 |
tscholl
|
Posted: Sun Jun 23, 2013 6:24 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
Will that also take care of the "Backend Logs" heading in mythweb as well?
|
|
Top |
|
 |
tscholl
|
Posted: Mon Jun 24, 2013 2:55 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
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?
|
|
Top |
|
 |
jams
|
Posted: Mon Jun 24, 2013 4:12 pm |
|
 |
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
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 ~
|
|
Top |
|
 |
tscholl
|
Posted: Sat Jul 06, 2013 11:33 am |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
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
|
|
Top |
|
 |
jams
|
Posted: Sun Jul 07, 2013 11:42 am |
|
 |
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
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)
|
|
Top |
|
 |
tscholl
|
Posted: Sun Jul 07, 2013 12:04 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
|
Top |
|
 |