Bogg wrote: 
> As requested  this is with dac still off - 
> 
> > 
Code:
--------------------
  >   > 
  > tc@pCP:~$ ps | grep squeezelite
  > 6330 root      0:01 /usr/local/bin/squeezelite -n piCorePlayer -o 
hw:CARD=M6,DEV=0 -a 80 4  1  -v
  > 10355 tc        0:00 grep squeezelite
  > tc@pCP:~$ cat /var/run/squeezelite.pid
  > cat: can't open '/var/run/squeezelite.pid': No such file or directory
  > tc@pCP:~$
  > 
--------------------
> > 
> > 
Code:
--------------------
  >   > [      17.15] Script parameters: find M6 
  > [      17.20] Searching for M6 with idVendor=0d8c and idProduct=0004 in 
dmesg
  > [      17.24] M6 detected on  1-1.2
  > [      17.26] Restoring alsa settings for M6
  > [      79.87] Script parameters: stop M6 1-1.2:1.1
  > [      79.87] Script parameters: stop M6 1-1.2:1.0
  > [      79.99] Script parameters: stop M6 1-1.2:1.2
  > [      80.01] Script parameters: stop M6 1-1.2
  > [      80.03] M6 on 1-1.2 removed
  > [      80.06] Stopping Squeezelite player: Squeezelite...
  > [      80.07] /tmp/M6.kername deleted
  > 
--------------------
> > 

Great, thank you.  I guess for completeness I should have asked for
those same commands to be run before you powered off the DAC and again
after you powered it off. Sorry.

Code:
--------------------
    ps | grep squeezelite
  cat /var/run/squeezelite.pid
--------------------


But it seems clear that the init.d script has attempted to stop
Squeezelite - it has deleted the PIDFILE but it hasn't actually stopped
the process. 


Code:
--------------------
        stop)
                if [ ! -f $PIDFILE ]; then
                        echo "$PNAME is not running."
                        exit 1
                fi
                echo "Stopping $DESC: $PNAME..."
                start-stop-daemon --stop --quiet -p $PIDFILE   *<-- This bit 
didn't work*
                sudo rm -f $PIDFILE                            *<-- This bit 
did work*
                ;;
  
--------------------


I wonder if there's any reason that /sbin/start-stop-daemon would behave
differently when called from udev.  I'll have a think about a way to
test this.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to