I want to run a UPNP renderer as a service on a Raspberry Pi using Raspian, a Debian based distro.
Actually, everything runs fine but one thing : I can't manage to start the service at boot time at the right time. To me, it looks that it starts too early before the wifi connection has been established. As a result, the renderer can't be seen on the network. If I manually stop the service and restart it, it works fine.

As root, I run the following command to create the service :

update-rc.d gmediarender defaults

but links are created like S02gmediarender
and the wifi manager is S03wicd
so after unregistering gmediarender, I tried :

A new try :
I tried to rename /etc/rc2.d/S02gmediarender as /etc/rc2.d/S06gmediarender
Same problem : after reboot, the service isn't visible on the network.

Finally:
I went in another direction : getting the problem simpler as I suspected that wicd and network-manager were probably interfering with each other. So I got rid of the two of them and configured /etc/network/interfaces so the RPI simply connect to my wifi access point. The KISS effect : Keep it simple, stupid ;-)
Without the wifi managers overhead and after a reboot, the GMediaRenderer is now available on my network.

If you omit the 99, does it create the script with S20... then? What version of Debian is that?
–
ott--Mar 31 '13 at 23:04

When I omitted the 99, the scripts were created with S02 and the network manager(s) were like S03. I got rid of them and it is now fine. Raspian is a Debian based distro for the €25 Raspberry computer
–
Sun WukongApr 6 '13 at 17:30

thanks for your help. I added the $network dependency, issued the update-rc.d gmediarender defaults command and rebooted. But unfortunatly after reboot, the service is up (like before) but the renderer isn't seen on the network (as it is if I restart it manually). Here's a trace I made :
–
Sun WukongMar 30 '13 at 20:44