Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Senior Member
    Join Date
    Jun 2017
    Posts
    415
    Does anybody else know of reasons why -z is deprecated?
    LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic.

  2. #22
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,235
    Quote Originally Posted by RobbH View Post
    Does anybody else know of reasons why -z is deprecated?
    Hey Robb

    Sorry about the delay, I could not connect to forums.slimdevices for about an hour or so.

    As I said in my earlier post I have always thought -z was not necessary, and to be avaoided.

    I have no recollection of where or when this seed was planted

    When I first used Squeezelite I found Gerrelt's scripts and have used them always.

    I always recommend them.

    But I hardly read the information, because many years ago I made a spoof sheet and operate from that.

    Your query promted me to read through Gerrelt's blog and I found this

    Starting Squeezelite on startup

    It was working well, so now I wanted to have it started on startup. So, to automate things, I made a daemon start script to start Squeezelite.

    The daemon script uses a seperate script for the settings, called “squeezelite_settings.sh” . For automatic startup I use a systemd service file “squeezelite.service”.
    and sure enough

    Code:
    pi@raspberrypiLMS:~ $ sudo /etc/init.d/squeezelite status -l
    * squeezelite.service - Squeezelite LMS player
       Loaded: loaded (/etc/systemd/system/squeezelite.service; enabled; vendor preset: enabled)
       Active: active (running) since Thu 2021-02-18 17:23:00 GMT; 29min ago
      Process: 618 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS)
     Main PID: 655 (squeezelite-arm)
        Tasks: 4 (limit: 3860)
       CGroup: /system.slice/squeezelite.service
               `-655 /usr/bin/squeezelite-armv6hf -o hw:CARD=Headphones,DEV=0 -n raspberrypiLMS -m dc a6 32 ce 7e 58 -C 10 -a 0 -P /var/run/squeezelite-armv6hf.pid -z
    
    Feb 18 17:23:00 raspberrypiLMS systemd[1]: Starting Squeezelite LMS player...
    Feb 18 17:23:00 raspberrypiLMS sudo[625]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/squeezelite-armv6hf -t
    Feb 18 17:23:00 raspberrypiLMS sudo[625]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Feb 18 17:23:00 raspberrypiLMS sudo[625]: pam_unix(sudo:session): session closed for user root
    Feb 18 17:23:00 raspberrypiLMS squeezelite[618]: Starting: /usr/bin/squeezelite-armv6hf  -o hw:CARD=Headphones,DEV=0 -n raspberrypiLMS -m dc:a6:32:ce:7e:58 -C 10 -a :::0 -P...armv6hf.pid -z
    Feb 18 17:23:00 raspberrypiLMS squeezelite[618]: with pidfile: /var/run/squeezelite-armv6hf.pid
    Feb 18 17:23:00 raspberrypiLMS systemd[1]: squeezelite.service: Can't open PID file /run/squeezelite-armv6hf.pid (yet?) after start: No such file or directory
    Feb 18 17:23:00 raspberrypiLMS systemd[1]: Started Squeezelite LMS player.
    Hint: Some lines were ellipsized, use -l to show in full.
    pi@raspberrypiLMS:~ $
    The bugger is already there

    Now; when I first used these scripts I did not understand any of the nomentclature, but "I'm younger than that now" and understand a little.

    I just don't join the words up with a bit of thinking.

    So, relax, wrap up, and keep warm, stay safe and zed away if you want to

    ronnie

  3. #23
    Senior Member
    Join Date
    Jun 2017
    Posts
    415
    Quote Originally Posted by Man in a van View Post
    ....

    So, relax, wrap up, and keep warm, stay safe and zed away if you want to

    ronnie
    Thanks for clarifying that!

    Even though we may be divided by a common language, I think I understood what you said. Thanks!
    LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic.

  4. #24
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,235
    Quote Originally Posted by RobbH View Post
    Thanks for clarifying that!

    Even though we may be divided by a common language, I think I understood what you said. Thanks!
    Other adventures today, led me to the source of my brain-worm

    When using the debian version of squeezelite (very old)

    sudo nano /etc/default/squeezelite

    Name:  for RobbH.png
Views: 56
Size:  23.7 KB

    ronnie

  5. #25
    Senior Member
    Join Date
    Jun 2017
    Posts
    415
    Quote Originally Posted by Man in a van View Post
    Other adventures today, led me to the source of my brain-worm

    When using the debian version of squeezelite (very old)

    sudo nano /etc/default/squeezelite

    Name:  for RobbH.png
Views: 56
Size:  23.7 KB

    ronnie
    Thanks! Very interesting.
    LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic.

  6. #26
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,235
    Quote Originally Posted by RobbH View Post
    Thanks! Very interesting.
    what I did not understand the first time I looked at that instruction was that the squeezelite file that is installed in

    /etc/init.d/squeezelite

    actually starts and stops the daemon

    so there is no need for the user to call -z
    Attached Files Attached Files

  7. #27
    Senior Member
    Join Date
    Jun 2017
    Posts
    415
    Quote Originally Posted by Man in a van View Post
    what I did not understand the first time I looked at that instruction was that the squeezelite file that is installed in

    /etc/init.d/squeezelite

    actually starts and stops the daemon

    so there is no need for the user to call -z
    Suddenly, it all makes sense. Many thanks!
    LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •