bakker_be wrote:
> After a lot of searching, trying, cursing, searching and trying again
> I've managed to solve my issue :)
> Below what I've done, for future reference for myself, and to offer an
> alternative to what's detailed above. As with the above, my method is
> based on the info in 'HaveTheKnowhow'
> (http://www.havetheknowhow.com/Install-the-software/Install-MusicIP.html),
> along with info gathered from stackexchange and reddit, so I'll not
> repeat the steps which are identical. Where my approach differs is in
> the content and location of the service file.
> Edit the mmserver file:
> >
Code:
--------------------
> >
> vim MusicIP/mmserver
>
--------------------
> >
> Keep hitting dd until all lines in the file are gone. Paste the
> following into the file, replacing XXX by your username:
> >
Code:
--------------------
> >
> [Unit]
> Description=MusicMagicServer
>
> [Service]
> Type=simple
> Restart=on-failure
> User=XXX
> ExecStart=/home/XXX/MusicIP/MusicMagicServer start
> ExecStop=/home/XXX/MusicIP/MusicMagicServer stop
>
> [Install]
> WantedBy=multi-user.target
>
--------------------
> >
> Move the mmserver file into its location:
> >
Code:
--------------------
> >
> sudo mv MusicIP/mmserver /etc/systemd/system/mmserver.service
>
--------------------
> >
> Enable and start the service
> >
Code:
--------------------
> >
> sudo systemctl enable mmserver
> sudo systemctl start mmserver
>
--------------------
> >
Fresh install on Ubuntu 20.04 and I can't get MusicIP to start before
LMS.
I followed @bakker_be example above and when that did not work, I added
Before=
Code:
--------------------
[Unit]
Description=MusicMagicServer
Before=logitechmediaserver.service
[Service]
Type=simple
Restart=on-failure
User=mjs
ExecStart=/home/mjs/MusicIP/MusicMagicServer start
ExecStop=/home/mjs/MusicIP/MusicMagicServer stop
[Install]
WantedBy=multi-user.target
--------------------
And that still did not work so following
https://forums.slimdevices.com/showthread.php?104437-LMS-and-systemd-on-Ubuntu&p=832088&viewfull=1#post832088,
I created a systemd service file for LMS and add
Wants=mmserver.service:
Code:
--------------------
[Unit]
Description=Logitech Media Server Daemon
After=network.target
Wants=mmserver.service
[Service]
User=squeezeboxserver
Group=nogroup
PIDFile=/var/run/logitechmediaserver.pid
WorkingDirectory=/var/lib/squeezeboxserver
ExecStart=/usr/sbin/squeezeboxserver \
--prefsdir /var/lib/squeezeboxserver/prefs \
--cachedir /var/lib/squeezeboxserver/cache \
--logdir /var/log/squeezeboxserver \
--charset utf8
[Install]
WantedBy=multi-user.target
--------------------
I don't understand this systemd stuff very well so appreciate any help
on getting this right so MusicIP loads before LMS on boot. Everything
works fine if I restart LMS after the boot completes, but I would prefer
to get this right.
------------------------------------------------------------------------
mikes's Profile: http://forums.slimdevices.com/member.php?userid=2427
View this thread: http://forums.slimdevices.com/showthread.php?t=108991
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins