Bug 818800

Summary: hostapd.service pointing to the wrong config file
Product: [Fedora] Fedora Reporter: Izhar Firdaus <kagesenshi.87>
Component: hostapdAssignee: John W. Linville <linville>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: linville, petr.tuma, trever
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-19 14:58:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Izhar Firdaus 2012-05-04 03:34:00 UTC
Description of problem:
hostapd.service pointing to the wrong config file path. the rpm installs the config in /etc/hostapd/hostapd.conf while hostapd.service is using /etc/hostapd.conf



Version-Release number of selected component (if applicable):
hostapd-0.7.3-5.fc17.x86_64

How reproducible:
Always

Steps to Reproduce:
1. install hostapd
2. configure hostapd
3. start hostapd
  
Actual results:
fails to start

Expected results:
start successfully

Additional info:

hostapd.service is using:
ExecStart=/usr/sbin/hostapd /etc/hostapd.conf -P /run/hostapd.pid -B

should be
ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B

Comment 1 Fedora Update System 2012-05-25 18:08:27 UTC
hostapd-0.7.3-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/hostapd-0.7.3-6.fc17

Comment 2 Fedora Update System 2012-05-26 08:02:49 UTC
Package hostapd-0.7.3-6.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hostapd-0.7.3-6.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8421/hostapd-0.7.3-6.fc17
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-05-30 15:10:50 UTC
hostapd-0.7.3-7.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/hostapd-0.7.3-7.fc17

Comment 4 Petr Tuma 2012-06-02 20:14:21 UTC
Tried hostapd-0.7.3-7.fc17, the config file location issue is fixed.

There is one more bug in /usr/lib/systemd/system/hostapd.service though.

The PIDFile entry says the PID file should be /run/hostapd/hostapd.pid, while the ExecStart entry in the same file says -P /run/hostapd.pid.

Comment 5 Fedora Update System 2012-06-06 18:02:59 UTC
hostapd-0.7.3-8.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/hostapd-0.7.3-8.fc17

Comment 6 Petr Tuma 2012-06-07 18:35:50 UTC
Tested quickly, seems to work, thanks !

Comment 7 Trever Adams 2012-06-08 05:49:14 UTC
This does NOT fix the problem. It causes another. /run/hostapd is NOT created by a tmpfiles.d setup. It must be because hostapd doesn't create it itself until after you are trying to write a pid file to it.

So, one of two solutions exist. I do not know which is correct for Fedora policies:

1) Create /run/hostapd in a /etc/tmpfiles.d file
2) Change the PIDFile and -P part of command line to write/read to /run/hostapd.pid instead of /run/hostapd/hostapd.pid

Comment 8 Fedora Update System 2012-06-08 14:54:12 UTC
hostapd-0.7.3-9.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/hostapd-0.7.3-9.fc17

Comment 9 Fedora Update System 2012-06-08 15:04:50 UTC
hostapd-0.7.3-9.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/hostapd-0.7.3-9.fc16

Comment 10 Trever Adams 2012-06-11 02:45:01 UTC
I believe this is correctly fixed.

Comment 11 Fedora Update System 2012-06-19 14:53:58 UTC
hostapd-0.7.3-9.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-06-19 14:58:14 UTC
hostapd-0.7.3-9.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.