Squeezelite: change the machine name Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite: change the machine name

Post by Joulinar »

@posek
pls can you post following

Code: Select all

ps -ef|grep squeeze
systemctl cat squeezelite.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
posek
Posts: 4
Joined: Thu Sep 17, 2020 2:10 pm

Re: Squeezelite: change the machine name

Post by posek »

@Joulinar
Thanks you reply :) :) ,maybe I knew where is the problem. :lol:
I successfully renamed squeezelite, used new path.

nano /etc/systemd/system/squeezelite.service

Should be:
nano /lib/systemd/system/squeezelite.service

#refresh service
systemctl daemon-reload

#Restart services
dietpi-services restart
Attachments
A5A6966B-257D-4FBC-910F-95859A1B69E8.png
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite: change the machine name

Post by Joulinar »

Hi,

well you could have used dietpi-services to manage/change Squeezelite service configuration as described on our user documents viewtopic.php?p=1009#p1009

As far as I can see on your screen print, you already use a dietpi-service drop-in configuration file for Squeezelite. So quite easy to manage ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
posek
Posts: 4
Joined: Thu Sep 17, 2020 2:10 pm

Re: Squeezelite: change the machine name

Post by posek »

Hi Joulinar,

I know what you mean, and thanks for you kindness.

I have used dietpi-services modify squeezelite, but failed, because when I entry dietpi-sevices to edit name, windows drag me into a uncorrespond path, see my attached. So i has been unsuccessful .

I am not sure if its a bug, because I used other Linux image update to dietpi, rather than download dietpi provide official image for odroid.
Thanks for you great job, dietpi help me a lot.
Attachments
D8B43990-F43C-426A-A148-F745F1747D60.jpeg
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite: change the machine name

Post by Joulinar »

this all is fully correct as it is

Basically you will have 2 config files if you use dietpi-service to add/change anything.
  1. /lib/systemd/system/squeezelite.service
    • this is the original config file and should not be touched
  2. /etc/systemd/system/squeezelite.service.d/dietpi-services_edit.conf
    • using dietpi-service will create a drop-in config file
    • it will overwrite content from the original config file during service start
    • all changes should be done on this drop-in config file
    • this way, you can protect custom entries if the original config file will be overwritten (software re-installation or update)
    • on the drop-in config file you would need to modify the ExecStart as follow, add an empty ExecStart= and remove # in front of ExecStart as well

      Code: Select all

      [Service]
      #User=squeezelite
      ExecStart=
      ExecStart=/usr/bin/squeezelite -a 4096:1024:16:0 -C 5 -n 'DietPi1234'
    • similar is described on our user doc viewtopic.php?p=1009#p1009
    • leaving dietpi-service editor should reload and restart the service
    • running systemctl cat squeezelite.service will give you full content of your service file
    • there you will see 2 blue lines, representing both config files. Already shown on your first screen print
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
posek
Posts: 4
Joined: Thu Sep 17, 2020 2:10 pm

Re: Squeezelite: change the machine name

Post by posek »

Gain knowledge, I reinstalled squeezelite, edited dietpi-services follow you instructions, add new
Execstart=, delete # , successes! Forgive me, :cry: I'm a novice :lol:
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite: change the machine name

Post by Joulinar »

good that we could solve it that way. :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
pscreed
Posts: 2
Joined: Tue Jun 29, 2021 12:54 am

Re: Squeezelite: change the machine name

Post by pscreed »

Hi -

First thanks for this great software. I use it on multiple RPs.

Having some trouble though with the drop in. It isn’t working for me for renaming player or anything other arguments with squeezelite.

Any chance something is broken with latest versions of dietpi and squeezelite?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite: change the machine name

Post by Joulinar »

can you share you service configuration

Code: Select all

systemctl cat squeezelite.service
As well pls describe the exact error message or provide some log files
pscreed
Posts: 2
Joined: Tue Jun 29, 2021 12:54 am

Re: Squeezelite: change the machine name

Post by pscreed »

Hi -

I'm sorry this is dumb on my part. I did not add the extra ExecStart= line at the top go the drop in.

I apologize... thanks again for great software.
Post Reply