linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #13515
[Bug 1509340] Re: MythTV backends logs to syslog and console
mythbackend logs both to console and to syslog.
By addind parameters to systemd-service file, the console logging is discarded to prevent logging twice to console and syslog.
Console logging also ends-up in syslog, resulting in lines logged twice.
** Patch added: "patch-01.patch"
https://bugs.launchpad.net/mythbuntu/+bug/1509340/+attachment/4522506/+files/patch-01.patch
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/1509340
Title:
MythTV backends logs to syslog and console
Status in Mythbuntu:
New
Bug description:
mythtvbackend sends output to syslog and console.
Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
Send stdout to /dev/null so console logging doesn't go to syslog
Please add to /lib/systemd/system/mythtv-backend.service:
StandardOutput=null
cat /lib/systemd/system/mythtv-backend.service:
[Unit]
Description=MythTV Backend
Wants=mysql.service
After=mysql.service
[Service]
ExecStart=/usr/bin/mythbackend --syslog local7 --user mythtv
Restart=on-failure
StartLimitInterval=10min
[Install]
WantedBy=multi-user.target
Ref: https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration
Example of syslog:
Oct 23 14:21:50 server mythbackend[2458]: 2015-10-23 14:21:50.135119 I Reschedule requested for MATCH 0 6 0 2015-10-23T13:45:00Z EITScanner
Oct 23 14:21:50 server mythbackend: mythbackend[2458]: I Scheduler scheduler.cpp:2139 (HandleReschedule) Reschedule requested for MATCH 0 6 0 2015-10-23T13:45:00Z EITScanner
Oct 23 14:21:50 server mythbackend[2458]: 2015-10-23 14:21:50.808907 I Scheduled 20 items in 0.7 = 0.56 match + 0.03 check + 0.06 place
Oct 23 14:21:50 server mythbackend: mythbackend[2458]: I Scheduler scheduler.cpp:2252 (HandleReschedule) Scheduled 20 items in 0.7 = 0.56 match + 0.03 check + 0.06 place
To manage notifications about this bug go to:
https://bugs.launchpad.net/mythbuntu/+bug/1509340/+subscriptions
References