I haven't used any of those OS's, and my effort has been very LMS-Debian driven.
I had a quick glance at, I think, the Fedora init script. It did seem to differ quite significantly, and I doubt that my effort could be used as a simple drop in. I think the approach one might take is to build a systemd unit file based on what's going on within the Fedora script. That done, look for the common features, see what might be "merged", and see what is distribution specific.
systemd provides for unit file overrides. So in principle one might end up with a common "upstream" defined unit file, which the distribution then tweaks as necessary by way of override files. (To be found in a ".d" directory by the same name, and with ".conf" suffixes). Whether LMS's historical development would easily allow that approach is another matter.
Results 11 to 20 of 39
Thread: systemd service file for LMS
-
2020-10-26, 14:53 #11
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 945
-
2020-10-26, 17:16 #12
- Join Date
- May 2005
- Posts
- 2,310
The Fedora init script is overly complex because it was written so that a single rpm file could support multiple rpm-based OS's. I *think* that a systemd implementation would be much simpler, but I'm not really knowledgeable enough about systemd to say that with any conviction. Hopefully a Fedora (etc) user with some systemd experience can chime in.
-
2020-11-02, 11:03 #13
- Join Date
- Feb 2020
- Posts
- 17
No LMS Love
Hi -
I tried the service scripy on Raspberry Pi 4 with Ubuntu Server 20.04 arm64 with no luck (latest 8 build). The service fails to start. I do get the Perl error:DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name
I had no issues getting the service to run on the Desktop version for Pi and PC of Ubuntu which I find odd.
This is in my system log:
Nov 2 17:53:57 ubuntu systemd[1]: logitechmediaserver.service: Succeeded.
Nov 2 17:54:13 ubuntu systemd[1]: Reloading.
Nov 2 17:54:14 ubuntu systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Nov 2 17:54:16 ubuntu systemd-resolved[1746]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Nov 2 17:54:24 ubuntu systemd[1]: logitechmediaserver.service: Succeeded.
Nov 2 17:54:48 ubuntu systemd-resolved[1746]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Any suggestions?
-
2020-11-02, 12:41 #14jvromans@squirrel.nlGuest
systemd service file for LMS
On Mon, 2 Nov 2020 18:03:12 +0000, Shart
<Shart.9rq38n (AT) no-mx (DOT) forums.slimdevices.com> wrote:
> I tried the service scripy on Raspberry Pi 4 with Ubuntu Server 20.04
> arm64 with no luck (latest 8 build). The service fails to start. I do
> get the Perl error: > DBI EV XML::Parser::Expat HTML::Parser JSON::XS
> Digest::SHA1 YAML::XS
> > Sub::Name.
This is not related to the systemd service. Maybe your LMS install is
corrupt (or wrong architecture?). This error message typically indicates
that the native libraries do not match.
-- Johan
-
2020-11-02, 13:10 #15
- Join Date
- Feb 2020
- Posts
- 17
-
2020-11-02, 13:32 #16
systemd service file for LMS
> I tried the service scripy on Raspberry Pi 4 with Ubuntu Server 20.04
> arm64 with no luck (latest 8 build). The service fails to start. I do
> get the Perl error: > DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS
This most likely has nothing to do with the startup script. It's rather
lack of binary support your system's Perl. What would "perl -v" say?
--
Michael
-
2020-11-02, 17:08 #17
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 945
-
2020-11-02, 17:17 #18
- Join Date
- May 2005
- Posts
- 2,310
-
2020-11-02, 17:37 #19
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 945
Yes, the service file is agnostic in that regard.
As an aside, I find the following yields a useful diagnostic system log extract (in reverse order).
Code:sudo journalctl -r -u logitechmediaserver
-
2020-11-02, 17:54 #20
- Join Date
- May 2005
- Posts
- 2,310
--d_startup is often helpful