MythTV backends logs to syslog and console

Bug #1509340 reported by Charles
6
This bug affects 1 person
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/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

Revision history for this message
Charles (charles-bovy) wrote :

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.

Thomas Mashos (tgm4883)
Changed in mythbuntu:
assignee: nobody → Thomas Mashos (tgm4883)
Revision history for this message
Thomas Mashos (tgm4883) wrote :

Added --quiet to mythbackend arguments

Changed in mythbuntu:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.