Package: squeezelite
Version: 1.9.9-1414+git20221121.dbe69eb-1
Severity: normal

Dear Maintainer,

if i give my squeezelite a name with a space in it it doesn't start:

phil@squeezelite:~/bin $ fgrep SL_NAME /etc/default/squeezelite
SL_NAME="Squeezelite TV"
phil@squeezelite:~/bin $ sudo service squeezelite start
phil@squeezelite:~/bin $ sudo service squeezelite status
● squeezelite.service - LSB: Lightweight headless Squeezebox emulator
     Loaded: loaded (/etc/init.d/squeezelite; generated)
     Active: active (exited) since Thu 2025-03-20 20:08:47 CET; 3s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 2021 ExecStart=/etc/init.d/squeezelite start (code=exited, 
status=0/SUCCESS)
        CPU: 363ms

Mar 20 20:08:47 squeezelite systemd[1]: Starting squeezelite.service - LSB: 
Lightweight headless Squeezebox emulator...
Mar 20 20:08:47 squeezelite systemd[1]: Started squeezelite.service - LSB: 
Lightweight headless Squeezebox emulator.


Without a space in the name everything's fine:

phil@squeezelite:~/bin $ fgrep SL_NAME /etc/default/squeezelite
SL_NAME="Squeezelite_TV"
phil@squeezelite:~/bin $ sudo service squeezelite start
phil@squeezelite:~/bin $ sudo service squeezelite status
● squeezelite.service - LSB: Lightweight headless Squeezebox emulator
     Loaded: loaded (/etc/init.d/squeezelite; generated)
     Active: active (running) since Thu 2025-03-20 20:09:28 CET; 8s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 2086 ExecStart=/etc/init.d/squeezelite start (code=exited, 
status=0/SUCCESS)
      Tasks: 2 (limit: 178)
        CPU: 753ms
     CGroup: /system.slice/squeezelite.service
             └─2093 /usr/bin/squeezelite -n Squeezelite_TV

Mar 20 20:09:28 squeezelite systemd[1]: Starting squeezelite.service - LSB: 
Lightweight headless Squeezebox emulator...
Mar 20 20:09:28 squeezelite systemd[1]: Started squeezelite.service - LSB: 
Lightweight headless Squeezebox emulator.


Now I thought that should be easy to fix, just edit /etc/init.d/squeezelite and 
change

        # add squeezelite name if set
        if [ -n "$SL_NAME" ]; then
                DAEMON_ARGS="${DAEMON_ARGS} -n ${SL_NAME}"
        fi

to

        # add squeezelite name if set
        if [ -n "$SL_NAME" ]; then
                DAEMON_ARGS="${DAEMON_ARGS} -n \"${SL_NAME}\""
        fi

but the problem persists.

Best Regards,

Philip Herzog

-- System Information:
Debian Release: 12.10
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 6.12.20+rpt-rpi-v8 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages squeezelite depends on:
ii  init-system-helpers        1.65.2
ii  libasound2                 1.2.8-1+rpt1
ii  libavcodec59               8:5.1.6-0+deb12u1+rpt3
ii  libavformat59              8:5.1.6-0+deb12u1+rpt3
ii  libavutil57                8:5.1.6-0+deb12u1+rpt3
ii  libc6                      2.36-9+rpt2+deb12u10
ii  libfaad2                   2.10.1-1
ii  libflac12                  1.4.2+ds-2
ii  liblirc-client0            0.10.1-7.2
ii  libmad0                    0.15.1b-10.1+b1
ii  libmpg123-0                1.31.2-1+deb12u1
ii  libopusfile0               0.12-4
ii  libsoxr0                   0.1.3-4
ii  libssl3                    3.0.15-1~deb12u1+rpt1
ii  libvorbisfile3             1.3.7-1
ii  sysvinit-utils [lsb-base]  3.06-4

squeezelite recommends no packages.

squeezelite suggests no packages.

-- Configuration Files:
/etc/default/squeezelite changed [not included]

-- no debconf information

Reply via email to