logs to file
Added by Josu Lazkano almost 8 years ago
Hello,
I am running Tvheadend in a Debian server.
I want to get all logs in a dedicated log file, now I use to collect this way:
tail -f /var/log/syslog | grep tvheadend
Is it possible to get all logs in a file like "/var/log/tvheadened.log"?
Kind regards.
Replies (5)
RE: logs to file - Added by C K almost 8 years ago
Run tvheadend with
-l /var/log/tvheadened.log(if you run tvheadend as a service, edit /etc/init.d/tvheadend)
RE: logs to file - Added by Josu Lazkano almost 8 years ago
Hello,
I run as a service in Debian with official repository package. I edited "/etc/default/tvheadend" with this values:
From:
# TVH_DEBUG # if set to 1 will output debug to syslog TVH_DEBUG=1 # TVH_ARGS # add any other arguments TVH_ARGS=""
# TVH_DEBUG # if set to 1 will output debug to syslog TVH_DEBUG=0 # TVH_ARGS # add any other arguments TVH_ARGS="-l /var/log/tvheadend.log"
Then restart the service, but there is not create the "/var/log/tvheadend.log" file.
This is my init script: http://paste.debian.net/905128/
I am missing something?
Thanks for your help.
Kind regards.
RE: logs to file - Added by Joe User almost 8 years ago
If running as user "hts", then Tvheadend will not have permission to create the log file in /var/log.
You can try first as root:
touch /var/log/tvheadend.log chmod 666 /var/log/tvheadend.log
Then Tvheadend will be able to write to it.
Or, put the log file someplace user "hts" will always have permission, like /home/hts.
RE: logs to file - Added by T Pedersen almost 6 years ago
thanks for this. my iptv automatic networks works flawless now. running rp2 rasbien stretch with latest stable tvh version.
No stalling, buffering or other problems after the remapping..