Man in a van wrote: 
> Which OS are you using ?

Debian 10 Buster headless

I was already running squeezelite 1.9.9-1386 but I downloaded it again,
followed your instructions and tried to restart... no joy. Tbh, I'm not
familiar with the workings of init.d etc so am at a bit of loss to see
what's going wrong. I put some debug messages into the
/etc/init.d/squeezelite script (redirecting output to a log file) but it
didn't see what looked like errors...

> + [ -x /usr/bin/squeezelite ]
> + [ -r /etc/default/squeezelite ]
> + . /etc/default/squeezelite
> + SL_NAME=Player
> + SL_SOUNDCARD=sysdefault:CARD=Headphones
> + SB_EXTRA_ARGS=-r 44100 -a :::0
> + . /lib/init/vars.sh
> + TMPTIME=0
> + SULOGIN=no
> + DELAYLOGIN=no
> + UTC=yes
> + VERBOSE=no
> + FSCKFIX=no
> + [ -f /etc/default/rcS ]
> + unset EDITMOTD
> + unset RAMRUN
> + unset RAMLOCK
> + [ -r /proc/cmdline ]
> + cat /proc/cmdline
> + [  ]
> + . /lib/lsb/init-functions
> + run-parts --lsbsysinit --list /lib/lsb/init-functions.d
> + [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
> + . /lib/lsb/init-functions.d/20-left-info-blocks
> + [ -r /lib/lsb/init-functions.d/40-systemd ]
> + . /lib/lsb/init-functions.d/40-systemd
> + _use_systemctl=0
> + [ -d /run/systemd/system ]
> + [ -n  ]
> + [ squeezelite = init-d-script ]
> + [ squeezelite = start ]
> + executable=/etc/init.d/squeezelite
> + argument=start
> + prog=squeezelite
> + service=squeezelite.service
> + systemctl -p LoadState --value show squeezelite.service
> + state=loaded
> + [ loaded = masked ]
> + [ 11094 -ne 1 ]
> + [ -z  ]
> + readlink -f /etc/init.d/squeezelite
> + [ loaded != not-found ]
> + _use_systemctl=1
> + systemctl -p CanReload --value show squeezelite.service
> + [ no = no ]
> + [ start = reload ]
> + [ 1 = 1 ]
> + set +e
> + set +u
> + systemctl_redirect /etc/init.d/squeezelite start
> + local s
> + local rc
> + local prog=squeezelite
> + local command=start
> + s=Starting squeezelite (via systemctl)
> + service=squeezelite.service
> + systemctl is-system-running
> + OUT=degraded
> + [ degraded != degraded ]
> + [ start = status ]
> + log_daemon_msg Starting squeezelite (via systemctl)
> squeezelite.service
> + [ -z Starting squeezelite (via systemctl) ]
> + log_daemon_msg_pre Starting squeezelite (via systemctl)
> squeezelite.service
> + log_use_fancy_output
> + TPUT=/usr/bin/tput
> + EXPR=/usr/bin/expr
> + [ -t 1 ]
> + FANCYTTY=0
> + false
> + [ -z squeezelite.service ]
> + echo -n Starting squeezelite (via systemctl): squeezelite.service
> Starting squeezelite (via systemctl): squeezelite.service+
> log_daemon_msg_post Starting squeezelite (via systemctl)
> squeezelite.service
> + :
> + /bin/systemctl --no-pager start squeezelite.service
> + rc=0
> + [ start = status ]
> + log_end_msg 0
> + [ -z 0 ]
> + local retval
> + retval=0
> + log_end_msg_pre 0
> + log_use_fancy_output
> + TPUT=/usr/bin/tput
> + EXPR=/usr/bin/expr
> + [ -t 1 ]
> + FANCYTTY=0
> + false
> + log_use_fancy_output
> + TPUT=/usr/bin/tput
> + EXPR=/usr/bin/expr
> + [ -t 1 ]
> + FANCYTTY=0
> + false
> + RED=
> + YELLOW=
> + NORMAL=
> + [ 0 -eq 0 ]
> + echo .
> .
> + log_end_msg_post 0
> + :
> + return 0
> + return 0
> + exit 0
> bin/expr
> + [ -t 1 ]
> + FANCYTTY=0
> + false
> + RED=
> + YELLOW=
> + NORMAL=
> + [ 0 -eq 0 ]
> + echo .
> .
> + log_end_msg_post 0
> + :
> + return 0
> + return 0
> + exit 0  

It looks to me like the service is running... 
Code:
--------------------
    sudo systemctl is-active --quiet squeezelite && echo running
--------------------
 gives > running

Something that might be of use; on '/etc/init.d/squeezelite start',
sometimes the player 'Player' is found by LMS and sometimes not. If it
is, then the volume is at zero.

Tbh, I'm not super worried about it as I can start the player via a cron
script @reboot. That's working just fine but I'm just a little baffled
why it doesn't work as a service.


------------------------------------------------------------------------
pantomnesia's Profile: http://forums.slimdevices.com/member.php?userid=70846
View this thread: http://forums.slimdevices.com/showthread.php?t=114712

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to