6
5
I'm trying to start a service that depends on networking being started, whenever the computer is rebooted. I have a few questions:
Is this easily possible from an /etc/init.d script? I have tried creating a script here (conforming to the standards), but I'm really doubtful that it's even running on boot, let alone working. When I test it manually, it works.
I've seen the new Upstart service, but as far as how that actually works, I'm completely in the dark.
How can I make a script that runs on boot which runs after networking has been started? If I could run it after connected to wireless network, even better :)
Should I start on
net-device-up
or onnet-device-added
? I'm using this script to start a DLNA server serving overwlan0
. Thanks for the tip, I'll have to find a good guide on all of the options available for Upstart, seems like it's years ahead of system v. – Naftuli Kay – 2011-02-21T23:28:59.8431
@TKKocheran: Since you probably need communication to be available,
– Paused until further notice. – 2011-02-22T00:05:24.757net-device-up
would probably be the way to go. Here's the reference. Look particularly at the wiki.