Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2010-07-12 Thread rkerr

I'm having similar network issues with Ubuntu 10.04 and SBS 7.5.1.  I'm
running an AMD64 machine and using a Squeezebox Duet.  This machine is
at my home, and I turn it off when not using it.  I generally leave the
router and wireless network on, for use with other devices.

I used to have an occasional network problem on bootup, usually after a
power outage, but since the latest kernel and SBS upgrade (done at the
same time, so I don't know which is the problem) The SBS server NEVER
finds the Duet unless I first reboot the network hardware (router and
wireless) and boot the computer afterwards.

Before I go blindly probing around, has anyone worked out startup
scripts to fix this for Ubuntu 10.04?


-- 
rkerr

rkerr's Profile: http://forums.slimdevices.com/member.php?userid=8784
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2010-07-07 Thread agillis

On VortexBox I have a small script that runs at startup. It tries to
ping a network address. If it can it exits but if it can't it keeps
trying every few seconds until it can. Once it has pinged an address it
restarts SqueezeBox Server. This works very well and SqueezeBox never
give errors. If you want download a copy of VortexBox and take a look
at the script.


-- 
agillis

rip, tag, get cover art… All you do is insert the CD!
http://vortexbox.org

agillis
Lead Developer VortexBox

agillis's Profile: http://forums.slimdevices.com/member.php?userid=21140
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2010-07-07 Thread epoch1970

servies;496116 Wrote: 
> The first 3 characters determine the order of startup (S) or shutdown
> (K).
> A low number gets started earlier and killed later.

In system V init, when init enters runlevel X it executes scripts in
the rcX.d directory as follows:
- Kxx scripts with the argument "stop" appended, xx from 01 to 99,
then
- Sxx scripts with the argument "start" appended, xx from 01 to 99.
Exception: Scripts for services that are already in the state expected
for the destination runlevel (e.g. network already started) are not
executed.

Calling reboot makes init parse the scripts in the above order, in the
rc6.d directory.
Calling halt makes init parse the scripts in the above order, in the
rc0.d directory.
On debian and ubuntu the normal runlevel is 2.

So there should be a few Kxx (to kill/reinit services launched in
runlevel S, passed through at boot) and a lot of Sxx scripts in rc2.d.
Situation is reversed for rc0.d and rc6.d, runlevels for controlled
halt and reboot.

A set of links to this effect should allow squeezecenter to start and
shutdown gracefully (on debian lenny at least):
/etc/rc2.d/S99squeezecenter
/etc/rc0.d/K20squeezecenter
/etc/rc6.d/K20squeezecenter

Modern ubuntus use network-manager and upstart, so YMMV.


-- 
epoch1970

Daily dose delivered by: 2 SB Classic (fw 130), 1 SB Boom (fw 50) •
SqueezeCenter 7.3.4 (Debian 5.0) with plugins: ContextMenu,
SaverSwitcher by Peter Watkins • Server Power Control by Gordon Harris
•  WeatherTime by Martin Rehfeld • IRBlaster by Gwendesign (Felix) •
FindArt, CDplayer by bpa • BBC iPlayer, SwitchPlayer by Triode •
PowerSave by Jason Holtzapple • TrackStat by Erland Isaksson.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2010-07-07 Thread archstanton

kennyschiff;492861 Wrote: 
> In spite of moving to 7.5 I continue to have issues with Squeezebox
> server and DNS on my Ubuntu 8.10 box. Like others I get the dreaded
> "can't resolve IP address" for my various internet radio stations. If I
> restart the Squeezebox server once I'm in this condition, no issues at
> all.
> 
> It seems that the smartest thing to do, is to add some sort of delay
> timing into the startup sequence that waits for the network to get
> properly connected, then launch squeezecenter server.
> 
> Can someone advise on how I can add an appropriate delay into the start
> up sequence?

I've been having the same issues running SBS 7.5 on Ubuntu 10.04 (and
most previous versions).

Since this has been an ongoing issue since at least 7.3.4, can
something not be done to address this in a future update of SBS?


-- 
archstanton

archstanton's Profile: http://forums.slimdevices.com/member.php?userid=39105
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2009-12-16 Thread servies

llin;496090 Wrote: 
> Adding "sleep 10" to a startup script (rc.local in my case) will delay
> execution for 10 seconds.
That most probably won't work.
As he's using Ubuntu I guess he's using runlevel 5 which means that he
has to look in /etc/rc.d/rc5.d
In my setup (Fedora 11)
I see the following 2 commands (which are links to the corresponding
/etc/init.d entry):
S10network
S11named
S80squeezeboxserver
K10network
K11named
K80squeezeboxserver

The first 3 characters determine the order of startup (S) or shutdown
(K).
A low number gets started earlier and killed later.
The above setup makes sure that of the three entries the network is
started first, then the nameserver and after that squeezeboxserver.
Shutting down is the opposite order.
If squeezeboxserver has a lower number than named or network it
probably won't start up...


-- 
servies

There are 10 kinds of people in the world - those who understand binary
and those who don't.

servies's Profile: http://forums.slimdevices.com/member.php?userid=9496
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


Re: [SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2009-12-15 Thread llin

Adding "sleep 10" to a startup script (rc.local in my case) will delay
execution for 10 seconds.


-- 
llin

llin's Profile: http://forums.slimdevices.com/member.php?userid=3968
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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


[SlimDevices: Unix] How do I delay Squeezebox Server startup till after network connects

2009-12-06 Thread kennyschiff

In spite of moving to 7.5 I continue to have issues with Squeezebox
server and DNS on my Ubuntu 8.10 box. Like others I get the dreaded
"can't resolve IP address" for my various internet radio stations. If I
restart the Squeezebox server once I'm in this condition, no issues at
all.

It seems that the smartest thing to do, is to add some sort of delay
timing into the startup sequence that waits for the network to get
properly connected, then launch squeezecenter server.

Can someone advise on how I can add an appropriate delay into the start
up sequence?


-- 
kennyschiff

kennyschiff's Profile: http://forums.slimdevices.com/member.php?userid=11363
View this thread: http://forums.slimdevices.com/showthread.php?t=72283

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