Ramage;239446 Wrote: 
> I have fixed the script for stopping SC7 in CC 4.01 sp1
> 
> Compare with the original in the first post:
> 
> stop() {
> echo -n "Shutting down SqueezeCenter: "
> killproc $SLIMSERVER_BIN -SIGTERM
> RETVAL=$?
> echo
> [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/slimserver
> return $RETVAL
> 
> Note that the line killproc... has changed.  The original script
> /etc/rc.d/init/d/slimserver does not comply with the usage to the
> killall function script in /etc/rc.d/init.d/functions:
> 
> # A function to stop a program.
> killproc() {
>       RC=0
>       # Test syntax.
>       if [ "$#" -eq 0 ]; then
>               echo $"Usage: killproc {program} [signal]"
>               return 1
>       fi
> 
> Does this problem affect any other distro, when did the stop script
> change?

The change to the script does not need -SIGTERM

stop() {
echo -n "Shutting down SqueezeCenter: "
killproc $SLIMSERVER_BIN
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/slimserver
return $RETVAL

works OK.


-- 
Ramage

T5500 1.6GHz, Slimserver 6.5.5 - 13599 - Windows Vista, Alien 1.06
P4 2.6GHz, SqueezeCentre Version: 7.0 - 14284 - Windows XP, Alien 2.0b
P2 266MHz, Linux ClarkConnect 4.1.sp1, SlimServer Version: 7 - 14284,
Alien 2.0b, perl 5.8.5
NSLU2 Unslung 6.8b SlimServer Version: 6.3.1 - 8476 - Linux, No Alien
------------------------------------------------------------------------
Ramage's Profile: http://forums.slimdevices.com/member.php?userid=5343
View this thread: http://forums.slimdevices.com/showthread.php?t=39841

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

Reply via email to