Start hostapd service on boot
Sounds like you might have gotten past this, as the daemon reports it is running when querying status.
My /etc/default/hostapd
file did not define where to find the hostapd.conf
file (as provided by Ubuntu 14.04.1 LTS). And so, I received no output when running sudo service hostapd start
or sudo service hostapd status
.
Once I directed the out-of-the-box init script to a configuration file, the service was able to start, and show status.
Maybe this was done on purpose to force you to think about configuration before the wireless services start.
Related videos on Youtube
loo3y35
Updated on September 18, 2022Comments
-
loo3y35 over 1 year
How to start
hostsapd
service every time my compute startsI have Ubuntu Server 13.10 and kernel 3.11
When I tried
sudo update-rc.d hostapd defaults
I got the followingSystem start/stop links for /etc/init.d/hostapd already exist.
and
sudo service hostapd status
shows that the service is not running-
Parto almost 10 yearspossible duplicate of How can I configure a service to run at startup
-
loo3y35 almost 10 years@Parto Already tried that, doesn't work
-
Jos almost 10 yearsIs there anything useful in
/var/log/syslog
after "Starting advanced IEEE 802.11 management" if you trysudo service hostapd start
manually? -
loo3y35 almost 10 years
sudo service hostapd start
works perfectly, my only issue is starting the service automatically @Jos -
Jos almost 10 yearsTry this: edit the file
/etc/init.d/hostapd
, remove the--quiet
option in thestart)
section, and reboot. This should give you more informational messages in/var/log/syslog
. -
Lety almost 10 yearsDoes hostsapd need other services in up status to successfully complete its startup?
-
loo3y35 almost 10 years@Letizia I have no idea, how to check that?
-
loo3y35 almost 10 years@Jos a message there says that the channel chosen is not supported, but when the computer is on I can use the same configuration file to run the service and it works.
-
Jos almost 10 yearsThat sounds like a bug. Perhaps report this on Launchpad?
-
Lety almost 10 yearsRun level init process starts ad static-network-up event. The event will not be emitted unless every interface configured as 'auto' in /etc/network/interfaces is up (see this link. Did hostapd need other kind of network up in order to complete its startup? Other point: verify in your /etc/rc2.d the number assigned to Sxxhostapd and which other services has upper value (they start after hostapd). Does this service necessary to hostapd startup? Sorry, but I don't know this service.
-