Re: MythTV F17 request systemd scripts

George Galt <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.general
Message-ID <CA+-thJP=C5dJWdtrHsoQy6gL-kJqOBBHretySPLwmmJnMM3a7Q@mail.gmail.com>
On Sun, Sep 30, 2012 at 5:53 PM, Paul <[email protected]> wrote:
> Hi Axel,
>         would it be possible to update your F17 MythTV package to use
> Systemd instead of the SysV scripts as these  seem to offer much more
> flexibility eg you can wait for devices
> here is a Wiki link to assist.
> http://www.mythtv.org/wiki/Systemd_mythbackend_Configuration
>
> thanks
> Paul
>
> _______________________________________________
> atrpms-users mailing list
> [email protected]
> http://lists.atrpms.net/mailman/listinfo/atrpms-users

Axel:

I am assuming that the mythtv.spec file would need to be updated to
install the appropriate mythbackend.service file and to use systemctl
rather than chkconfig and /sbin/service to install and run the
appropriate file.

I'd be happy to try to take a crack at updating the spec file and send
you a diff, if you want.  I am assuming that this is the section of
the mythtv.spec file that needs to be adjusted:


%pre backend
# Add the "mythtv" user
/usr/sbin/useradd -c "mythtvbackend User" \
  -s /sbin/nologin -r -d %{_varlibdir}/mythtv mythtv 2> /dev/null || :

%post backend
/sbin/chkconfig --add mythbackend

%preun backend
if [ $1 = 0 ]; then
  /sbin/service mythbackend stop > /dev/null 2>&1
  /sbin/chkconfig --del mythbackend
fi

I've looked over the file that Paul referenced and it is very close to
the one I developed to use with my own systems (it uses slightly
different locations for some of the user files).  I'll let you know
how I get on.

George
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.