PDA

View Full Version : Startup script for opensuse 10.3?



jimflanagan
2007-10-14, 20:17
Has anyone done a script for opensuse 10.3 yet, or will the script for
10.2 work. I have not tried it yet.

Thanks,

Jim F

servies
2007-10-15, 00:06
Normally the init scripts aren't overhauled for a minor update (10.2 -> 10.3), so I would say the 10.2 version should work... But I'm not running Suse, so I'm not 100% sure about this.

jimflanagan
2007-10-16, 06:50
servies wrote:
> Normally the init scripts aren't overhauled for a minor update (10.2 ->
> 10.3), so I would say the 10.2 version should work... But I'm not
> running Suse, so I'm not 100% sure about this.
>
>
>
Thanks, I'll give it a try and revert back to the list.

Jim F

jimflanagan
2007-10-22, 10:19
Jim Flanagan wrote:
> servies wrote:
>
>> Normally the init scripts aren't overhauled for a minor update (10.2 ->
>> 10.3), so I would say the 10.2 version should work... But I'm not
>> running Suse, so I'm not 100% sure about this.
>>
>>
>>
>>
> Thanks, I'll give it a try and revert back to the list.
>
>
I installed SS 6.5.4 last night on openSuse 10.3, got it up and working
in under 10 minutes. The startup script for opensuse 10.2 works without
a hitch! Remember to set the script as executable.

Jim F

meep
2007-11-15, 15:50
Following all instructions, I get the fopllowing returned;

/etc/init.d/slimserver.init start returned nil (unspecified error):

SqueezeCenter appears to launch (I can access 127.0.0.1:9000.

Is this normal?

SuSe 10.3

Peter

Mark Miksis
2007-11-15, 16:00
You may want to look at the "universal" startup script I did as part of a SqueezeCenter RPM. See http://forums.slimdevices.com/showthread.php?t=39789 for information on the RPM. I've tested it on 10.3 and it seems to work fine. Even if you don't want to use the RPM, you may find the init script of use (http://svn.slimdevices.com/trunk/platforms/redhat/squeezecenter.init?rev=14555&view=log)

Note that this is for 7.0 and has not been tested with 6.5.x.

starcat
2008-03-09, 19:57
Following all instructions, I get the fopllowing returned;

/etc/init.d/slimserver.init start returned nil (unspecified error):

SqueezeCenter appears to launch (I can access 127.0.0.1:9000.

Is this normal?

SuSe 10.3

Peter

please check that the last line of code in this script terminates with ENTER, seems to be important for the exit code.

starcat
2008-03-09, 19:58
Jim Flanagan wrote:[color=blue]
I installed SS 6.5.4 last night on openSuse 10.3, got it up and working
in under 10 minutes. The startup script for opensuse 10.2 works without
a hitch! Remember to set the script as executable.
Jim F

Jim, could you please post your startup script files? Thanks much!

mortenb
2008-03-11, 12:36
It is not very hard to write a startupscript,
copy or softlink to /etc/init.d/
change the SLIMPATH and SLIMUSER
then issue a chkconfig command to add the /etc/rc.d
softlinks


#chkconfig --add slimserver

% cat /etc/init.d/slimserver
#! /bin/sh
#
# startupscript hack for slimserver
# mortenb april 2007
#
### BEGIN INIT INFO
# Provides: slimserver
# Required-Start: $network $portmap
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: Slimserver is a music streamer serving the squeezebox
### END INIT INFO

SLIMPATH=/dist/SlimServer/squeezecenter-7.0-17793
SLIMBIN=slimserver.pl
SLIMUSER=mortenb
OPTIONS="--daemon"
test -x $SLIMPATH/$SLIMBIN || exit 5

. /etc/rc.status

rc_reset



case "$1" in
start)
echo -n "Starting $SLIMBIN "
/bin/su -l $SLIMUSER -c "$SLIMPATH/$SLIMBIN $OPTIONS";
rc_status -v
;;
stop)
echo -n "Terminating $SLIMBIN "
killall -TERM $SLIMBIN
rc_status -v
;;
restart)
stop;
start;
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
rc_exit

starcat
2008-03-11, 12:50
Thanks much, Morten - works like a charm!