14

wpa_supplicant seems to somehow be auto started at boot.

# ps auxwww |grep wpa
root       915  0.0  0.0  28824  1232 ?        S    17:36   0:00 /sbin/wpa_supplicant -u -s

How do I disable this service, prevent it from auto starting ?

htorque
  • 64,798
nos
  • 1,243

2 Answers2

13

Should be enough to remove the file

/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

Move it somewhere so you can restore it, rather than immediately delete it. ;-)

htorque
  • 64,798
  • For Ubuntu 13.04, I have to move the file fi.w1.wpa_supplicant1.service – Jaime M. Dec 07 '13 at 18:43
  • Seems to still be the case for Ubuntu 15.10, which uses systemd. wpa_supplicant is started from dbus, not from init scripts directly: systemctl status wpa_supplicant.service shows it's running, but not auto-started by systemd directly. (So disabling for future boots isn't possible with systemctl). Also, dpkg-divert will keep it disabled across package upgrades. – Peter Cordes Dec 12 '15 at 02:14
10

Update for 2019

htorque's solution did not work for me.

However, the following did work:

sudo systemctl disable wpa_supplicant