[mythtv-users] MythTV on SUSE Leap 15.0

Paul Gardiner lists at glidos.net
Wed Jul 25 08:41:16 UTC 2018


On 25/07/2018 02:34, Stephen Worthington wrote:
> 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

Thanks. That's really useful to know. I had a feeling that altering the 
main file was not ideal, although in this case, the main file looks to 
be broken. I suppose it may be correct but created with the intention 
that the package would also supply an override file.

Cheers,
	Paul.


More information about the mythtv-users mailing list