Delay init.d script until wireless network is available

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Delay init.d script until wireless network is available

Postby undisclosed on Fri Jul 12, 2013 1:04 am

I've installed Privoxy on Linux Mint 15 and I am trying to get it to start at boot time. I have configured the listen address to be the IP assigned of wlan0. It looks like the wireless network is not initialized when the init.d script runs. I see the following error in the log file.

Fatal error: can't bind to 192.168.0.255:8118: Cannot assign requested address


For now the only way I am able to run the service is by logging into my computer and typing
Code: Select all
sudo service privoxy start
in the terminal. Is there a way to delay execution of an init.d script until the wireless network has been initialized?

Here is the relevant section of info block from the init script.

Code: Select all
### BEGIN INIT INFO
# Provides:          privoxy
# Required-Start:    $local_fs $remote_fs $named $network $time
# Required-Stop:     $local_fs $remote_fs $named $network $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO
undisclosed
Level 1
Level 1
 
Posts: 3
Joined: Fri Jul 12, 2013 12:23 am

Linux Mint is funded by ads and donations.
 

Re: Delay init.d script until wireless network is available

Postby undisclosed on Sat Jul 13, 2013 8:11 pm

I was able to workaround the problem by adding the following line to root's crontab.

Code: Select all
@reboot sleep 10;service privoxy start
undisclosed
Level 1
Level 1
 
Posts: 3
Joined: Fri Jul 12, 2013 12:23 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot], nomko and 39 guests