MythTV backends logs to syslog and console
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Fix Committed
|
Undecided
|
Thomas Mashos |
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/
StandardOutput=null
cat /lib/systemd/
[Unit]
Description=MythTV Backend
Wants=mysql.service
After=mysql.service
[Service]
ExecStart=
Restart=on-failure
StartLimitInter
[Install]
WantedBy=
Ref: https:/
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-
Oct 23 14:21:50 server mythbackend: mythbackend[2458]: I Scheduler scheduler.cpp:2139 (HandleReschedule) Reschedule requested for MATCH 0 6 0 2015-10-
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
Changed in mythbuntu: | |
assignee: | nobody → Thomas Mashos (tgm4883) |
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.