logs to file
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"?
RE: logs to file - Added by C K 3 months 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 3 months ago
I run as a service in Debian with official repository package. I edited "/etc/default/tvheadend" with this values:
# 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.
RE: logs to file - Added by Joe User 3 months 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.