Perhaps someone can spot what I'm doing wrong.  I'm trying to simply get
Squeezeslave to start and run in the background when the PC boots.  The
PC is running openSUSE 11.0 and I'm using Squeezeslave 0.7.3, which I
believe is the latest.  It runs just fine if I start it manually.

To perform the autostart I have created /etc/init.d/squeezeslave and
made it executable.  Using Yast set up tool I have made this run at
runlevels 3 and 5.

The file looks like this:
-
podgy:~ # *cat /etc/init.d/squeezeslave*
#!/bin/sh
#
# /etc/init.d/squeezeslave
#
# Initializes the squeezeslave audio client
#
### BEGIN INIT INFO
# Provides:          squeezeslave
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Description:       Starts Squeezeslave
### END INIT INFO

. /etc/rc.status
rc_reset
case $1 in
start|b)
echo -n "Starting Squeezeslave"
/home/toby/squeezeslave-0.7.3/squeezeslave 192.168.0.34
rc_status -v
;;

stop)
echo -n "Stopping squeezeslave"
killall squeezeslave
rc_status -v
;;


*)
echo "usage: squeezeslave {start|stop}"
;;


esac
rc_exit
-

It's a rehash of a script I found on the web.  

I realise the problem is on the line
-/home/toby/squeezeslave-0.7.3/squeezeslave 192.168.0.34- that executes
squeezeslave but if I add the & at the end of the line then squeezeslave
doesn't start either from a terminal or at boot.

squeezeslave has never run on startup even though it shows in the set
up tool as being run in th ecorrect run levels.  Opening a terminal and
running the script manually -/etc/init.d/squeezeslave start- with the
script as above blocks the terminal but gives a running squeezeslave.

It's probably something stupid and simple, but what?  Thanks in
advance.


-- 
hellesangel
------------------------------------------------------------------------
hellesangel's Profile: http://forums.slimdevices.com/member.php?userid=5658
View this thread: http://forums.slimdevices.com/showthread.php?t=51880

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

Reply via email to