#696619 hostapd: init script makes hostapd starting before dhcpd

Package:
hostapd
Source:
wpa
Description:
access point and authentication server for Wi-Fi and Ethernet
Submitter:
Mathieu Roy
Date:
2012-12-24 01:54:04 UTC
Severity:
normal
#696619#5
Date:
2012-12-24 01:25:01 UTC
From:
To:
Hi there,

The default LSB init script makes hostapd starts with

	Should-Start: $network

With such setup, it's started before isc-dhcp-server for instance.

A few time on reboot, hostapd fails to get up proper. The wifi clients can connect but never gets an IP. The only way to fix the issue is to restart completely hostapd.

I changed the init script to

	Required-Start: $remote_fs $network isc-dhcp-server

and had no issue since then.

I thought odd to have isc-dhcp-server starting after hostapd, since in most usual scenarii people will expect to get a dynamically assigned IP.
But maybe that not the main issue (maybe hostapd just start too start and mess up the network before it is properly set up, I dont know)