[mythtv-users] does the backend need root privileges?

Richard Shaw hobbes1069 at gmail.com
Sun Jan 6 18:00:56 UTC 2013


On Sun, Jan 6, 2013 at 11:35 AM, Keith Pyle <kpyle at austin.rr.com> wrote:
> It's fairly easy to create a "mythtv" user (e.g., the "useradd" command)
> with the appropriate audio and video groups, and run mythbackend as that
> user.  Here are the relevant lines from /etc/init.d/mythbackend on a Gentoo
> distribution (your distro likely has somewhat different syntax):

Most distros take care of this for you in the package.


>         ebegin "Starting MythTV Backend"
>         start-stop-daemon --start --quiet --user mythtv \
>                 --exec /usr/bin/mythbackend \
>                 --make-pidfile --pidfile /var/run/mythbackend.pid \
>                 --background -- --verbose ${MYTH_VERBOSE} \
>                 --logfile /var/log/mythtv/mythbackend.log
>         rc=$?
>         eend $rc

Keep in mind, as of 0.25 I don't think --logfile is supported. It must
be --logpath. Also, if you're running systemd you don't need the
--pidfile option, just run it non-forking (don't use --daemon). I'm
not sure what --background does, it's not in --help.

Richard


More information about the mythtv-users mailing list