Re: EL7 mythtv 0.27 dependencies

Stephen Collier <[email protected]> Mon, 21 Jul 2014 17:25:58 +1000
Newsgroups gmane.linux.redhat.rpm.atrpms.general
Message-ID <[email protected]>
On 20/07/2014 8:47 PM, mo.ucina wrote:
> Thanks guys , appreciate that . I did not know about the epel 
> requirement , all good now . Been a bit of an uphill battle to get 
> myth working nicely on Centos 7 . To tell you the truth , even though 
> it is newer , it lacks some of the polish and ease of use that Centos 
> 6 had . For example , plymouth worked straight out of the box with old 
> centos , on the new one I just can not get a graphical boot . Even 
> after some tweaking the fonts are still a bit lumpy, can not set dpi 
> values . Also I think I have to rewrite all my init scripts to systemd 
> new standard , staring with mythbackend . It just does not start up on 
> reboot  , so I have it starting manually at the moment . Do you guys 
> have a nice systemd startup script for mythbackend ?
>
> Best Regards
>
> Milorad
>
Milrod,

I've at a look at the spec file and its going to need a lot of changes. 
I should be able to do it over the next couple of days before the next 
release.

if you make a file /lib/systemd/system/mythbackend.service

with the following it should help. There are some further mods that need 
making but this should get you started

######################################################
# file located at /lib/systemd/system/mythbackend.service
# use "systemctl enable mythtbackend.service to load
# based on a template from RPMFusion and R.G. Newbury from this thread:
# 
http://www.gossamer-threads.com/lists/mythtv/users/516650?search_string=mythbackend.service%20;#516650

[Unit]
Description=MythTV backend service

After=network.target mysqld.service
# for mythweb: not necessary so 'wants' not 'after'
Wants=httpd.service

[Service]
Type=simple

Environment=MYTHTV_HOME=/var/lib/mythtv
Environment=MYTHCONFDIR=/var/lib/mythtv
Environment=HOME=/var/lib/mythtv
# NOTE: using the "mythtv" user, NOT root.
User=mythtv

# NOTE: if you have other switches you want, insert them below. This is 
set to use log files in
# /var/log/mythtv. Make sure that the location of the HOME/MYTHCONFIG 
files, logs and the pid file
# are writeable by the user designated above.
ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv

[Install]
WantedBy=multi-user.target