LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2006, 09:58 PM   #1
bluelightning
Member
 
Registered: Mar 2006
Location: Redmond, WA
Distribution: FC4, WinXP Pro
Posts: 37

Rep: Reputation: 15
auto expire not working in mythtv


This is my first post on LQ. Please correct and forgive me if my post's format is wrong.

I'm running Fedora Core 4 and I installed mythtv with yum from the atrpms repository.

I realized that my tv program were not auto expiring. In case you don't know, 'auto expire' is a feature where mythtv will automatically delete old records in order to free up disk space. Without it working, my disk filled up and I couldn't record new programs.

With some trial and error, I discovered that mythtv would only delete files owned by the mythtv account. The problem is that the mythtv backend runs as root and leaves its owner as root on the recorded files. I think this is a bug; if it will only delete files owned by mythtv, it should change the owner to mythtv.

As a workaround, I proceeded to figure out how to get the backend to run as the mythtv user. This is inside the standard /etc/init.d/mythbackend that came from yum:
# Does not work on Red Hat, do to to missing audio/video groups.
# cd $MYTHTV_HOME && daemon --user mythtv $binary $OPTIONS
cd $MYTHTV_HOME && daemon $binary $OPTIONS

Sure enough, if the backend is run as mythtv, it doesn't have access to /dev/audio or /dev/video0. The permissions are crw------- root root. It seems like udev is the correct place to change these permissions. I editted /etc/udev/rules.d/50-udev.urules for the dsp, audio, and video lines like this:
KERNEL=="dsp*", GROUP="mythtv", MODE="0660"

The part I can't figure out is that once the computer is booted up, if I rmmod and modprobe my capture card, video0 has group mythtv. Unfortunately, if I just boot up my computer, video0 still has root as its group. If I then run udevstart, it gets switched. I find it hard to believe that udev isn't properly started in Fedora. Did I make my change in the wrong place?

As a work around, I run udevstart from the mythbackend init script before I start the backend as mythtv.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux beginner getting Leadtek DTV1000 T working under FC4 & MythTV alankingsley Linux - Hardware 3 01-20-2006 01:13 PM
mythtv install woes - urpmi not working right rbonafied Mandriva 3 12-19-2005 06:50 PM
expire date in useradd ALInux Linux - Security 2 11-08-2005 08:30 AM
samba password expire Peds222 Linux - Newbie 1 03-12-2005 04:34 PM
Video/TV (xawtv, mythtv) not working through coax digicaf Linux - Software 0 10-24-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration