[mythtv] Help needed for RPM Fusion package modernizaton

Gary Buhrmaster gary.buhrmaster at gmail.com
Wed Jul 18 14:47:06 UTC 2012


On Wed, Jul 18, 2012 at 6:54 AM, Daniel Thor Kristjansson
<danielk at cuymedia.net> wrote:
....
>>> 2. Right now on sysv systems both HOME and MTYHCONFDIR are being set
>
>
> Dunno about this. MYTHCONFDIR is used both to locate configuration
> files and as a location for caches. It would make a lot of sense
> to allow caches to go somewhere else.

sysv scripts are mostly dead for Fedora (EOL for F15 has
already happened).  Ignore them, let then die in piece.

In my opinion, the defaults should be to run as a "regular user",
with no need to read/write to system directories.  The mythtv
user should be created if it does not exist.  HOME should
not need to be set in the systemd scripts when the User=mythtv
line exists in the systemd script.  Any configuration that is
required for operation commonly created in /etc, /usr,
should be copied to the (RPM created, if does not exist) mythtv
user's .mythrv/ directory, using the RPM standards of "...rpmnew"
if the configuration already exists and is different than the file
you are trying to install (to the normal/correct name if the
file does not exist).  The mythtv user should be added to the
video and audio groups if the mythtv user is created by the RPM.
The startup scripts should specify the user mythtv as the user
to run the backend.  Create an appropriate /etc/limit.d/90-mythtv.conf
file to set the audio group for rtprio.

An individual can always override all of these things in their
copy of the service file that they place in /etc/systemd/system
(and/or modify the ~mythtv/.mythtv/ files, as needed).

Gary


More information about the mythtv-dev mailing list