[mythtv-users] MythTV on SUSE Leap 15.0
Stephen Worthington
stephen_agent at jsw.gen.nz
Wed Jul 25 01:34:32 UTC 2018
On Tue, 24 Jul 2018 23:14:25 +0100, you wrote:
>On 24/07/2018 19:46, mythtv at howorth.org.uk wrote:
>> systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid
>> user/group name or numeric ID: Productivity/Multimedia/Video/Players
>
>Oh yes, I forgot that. I had to edit
>/usr/lib/systemd/system/mythbackend.service and put the correct values
>of user and group.
If SUSE Leap 15.0 works like Ubuntu, then it is a bad idea to manually
change any files in /usr/lib/systemd/system/, as they will be
overwritten by the installation of a new version of the package that
installed them. The correct way to override a systemd unit file is to
use the override system provided by systemd. This involves creating a
directory in another location to contain override files for the unit.
In Ubuntu, these override directories are in /etc/systemd/system. So
I have a directory /etc/systemd/system/mythtv-backend.service.d which
contains a file mythtv-backend-override.conf and my override settings
are in that file. You can have as many *.conf files in the directory
as you like - they will be read and used in the order they are read to
override the base unit file settings.
The easy way to create an override file is to use the command provided
by systemd:
systemctl edit mythbackend.service
That will create a valid override file and run your default editor on
it. To change the user and group you would put something like this in
your override file:
[System]
User=mythtv
Group=mythtv
More information about the mythtv-users
mailing list