systemd problem on upgrade from .28 to .29

For discussion of topics specific to MythTV on linux
Post Reply
Stubby
Newcomer
Posts: 1
Joined: Sun Dec 09, 2018 11:20 pm
United States of America

systemd problem on upgrade from .28 to .29

Post by Stubby » Sun Dec 09, 2018 11:34 pm

Not sure this is the place for this, but maybe this will help someone.
when I upgraded to .29, mythbackend worked in terminal but not from systemd.

The problem was with the mythbackend.service script
the line:

Environment=HOME=/~/.mythtv
Causes mythbackend to look for the config.xml file in /home/mythtv/.mythtv/.mythtv/

should be

Environment=HOME=/home/mythtv/

User avatar
bill6502
Developer
Posts: 1377
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: systemd problem on upgrade from .28 to .29

Post by bill6502 » Mon Dec 10, 2018 3:22 am

Hi,

That's fine, but the preferred solution is: User=mythtv
That way the path to the home directory isn't required
(even though most will find it in /home.) Plus, the backend
runs as the recommended user mythtv.

Note that with systemd, the way to start/stop the backend is

Code: Select all

sudo systemctl start(or stop) mythtv-backend.service # assuming that's the name of the service file.
That way, even if started from the command line, the service is used.

If your distribution put the service in /lib/systemd/system..., then the proper way to
change the file is with systemctl edit mythtv-backend.service which will create the
necessary files in /etc/systemd/system. Otherwise, if the package manager makes
a change, your's will be overwritten. Please be sure to report the error to the maker
of your distrubition.

Post Reply