sì. Il DAC è un Mirand audio, e la relativa Xmos si identifica in quel modo.
err... se non è un errore di trascrizione, mancavano i ':' davanti a u32be. :ehh
Printable View
La prima indicazione me l'hai già data:
Probably stopped ma in realtà è attivo. Sarà quello che dice Paolo, in merito a systemd, indagherò più a fondo, magari prova a premere 'restart' e riportare il messaggio che mostra nel popup e magari verificare che passi da stopped a running al secondo tentativo.
Grazie.
IL DAC è andato in STOPPED (ossia non suona!) al 3 restart e refresh di falcon è ripartito, dopo un po...(non sono la persona più adatta a esperimenti ben fatti)
primo restart : messaggio che appare: INFO: from exit:restart. Message is:restarting Squeezelite (via systemctl): squeezelite.service.
Program
Pathname:
/usr/bin/squeezelite-R2
Version:
v1.8.4 (R2)
Build options:
LINUX ALSA EVENTFD DSD
Command line:
-n R2@newfutro -o hw:CARD=x20 -s 192.168.1.101 -D :u32be -x -C 1 -m 00:19:99:E6:35:E4 -r 384000 -b 102400:102400 -a 499:3::0
Process
Status:
Probably stopped
Info:
Warning: Invalid PID
----------------------------------
secondo restart: stesso messaggio, sembra: INFO: from Exit: restart. Message is: Restarting squeezelite (via systemctl): squeezelite.service
Status
Program
Pathname:
/usr/bin/squeezelite-R2
Version:
v1.8.4 (R2)
Build options:
LINUX ALSA EVENTFD DSD
Command line:
-n R2@newfutro -o hw:CARD=x20 -s 192.168.1.101 -D :u32be -x -C 1 -m 00:19:99:E6:35:E4 -r 384000 -b 102400:102400 -a 499:3::0
Process
Status:
Probably stopped
Info:
Warning: Invalid PID
Debian stretch amd64 netinst
Niente grafica
replicato su VM, è partito al primo colpo dopo aver selezionato il device di output e basta. Come sempre, dalla VM non riesco a produrre suono, ma si vede l'apertura corretta di ALSA e l'invio dello stream.
Anche a me dice "probably stopped" ed "invalid PID", ma ho visto che
service squeezelite status
risponde come
/etc/init.d/squeezelite status,
ma poi si blocca e bisogna terminarlo con il ctrl-C, il che manda in timeout il comando Perl di Falcon.
Posso modificare il comando, ma il buco è palesemente in Debian...
Edit
? lo script è sempre:
/etc/init.d/squeezelite
per Debian è quello 'ufficiale' :
codice:#!/bin/sh
### BEGIN INIT INFO
# Provides: squeezelite
# Required-Start: $network $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Lightweight headless Squeezebox emulator
# Description: Lightweight headless streaming audio player for Logitech's
# Squeezebox audio server (including R2 C-3PO support mod)
### END INIT INFO
# Author: Chris Boot
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Squeezebox client"
NAME=squeezelite
DAEMON=/usr/bin/${NAME}-R2
PIDFILE=/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Define LSB log_* functions.
. /lib/lsb/init-functions
#
# Function that starts the daemon/service
#
do_start()
{
DAEMON_ARGS=""
# add squeezelite name if set
if [ -n "$SL_NAME" ]; then
DAEMON_ARGS="${DAEMON_ARGS} -n ${SL_NAME}"
fi
# add souncard setting if set
if [ -n "$SL_SOUNDCARD" ]; then
DAEMON_ARGS="${DAEMON_ARGS} -o ${SL_SOUNDCARD}"
fi
# add squeezebox server ip address if set
if [ -n "$SB_SERVER_IP" ]; then
DAEMON_ARGS="${DAEMON_ARGS} -s ${SB_SERVER_IP}"
fi
# add any other options given by the user
if [ -n "$SB_EXTRA_ARGS" ]; then
DAEMON_ARGS="${DAEMON_ARGS} ${SB_EXTRA_ARGS}"
fi
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
--test > /dev/null || return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
--background --make-pidfile -- $DAEMON_ARGS || return 2
}
#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
--pidfile $PIDFILE --exec $DAEMON
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start; RET=$?
case $RET in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0; exit 0 ;;
*) [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop; RET=$?
case $RET in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0; exit 0 ;;
*) [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
status)
status_of_proc "$DAEMON" "$NAME"
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop; RET=$?
case $RET in
0|1)
do_start; RET=$?
case $RET in
0) log_end_msg 0; exit 0 ;;
1) log_end_msg 1; exit 1 ;; # Old process is still running
*) log_end_msg 1; exit 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
log_end_msg 1; exit 1
;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
;;
esac
Non credo sia colpa dello script, ma della gestione del comando in stretch, in Jessie va (o almeno non restituisce quell'errore).
Qual'è la 'best practice' per chiedere come è messo un servizio in linux? Ci sono almeno 5 modi diversi e funzionano diversamente in release diverse...