You are not logged in.
The hostapd service file is stored here: /usr/lib/systemd/system/hostapd.service
It starts hostapd in the following way:
ExecStart=/usr/bin/hostapd /etc/hostapd/hostapd.conf
I have two config files hostapd.conf and hostapd2.conf
what is the correct way to start both AP's?
Should you edit the hostapd service file as follows:
ExecStart=/usr/bin/hostapd /etc/hostapd/hostapd.conf /etc/hostapd/hostapd2.conf
or should you create a new service file for the second AP? or something completely different?
Offline
Don't edit the stock service file. Customized service files go in /etc/systemd/system. Just copy the stock service file there and edit it appropriately. HOSTAPD(8) indicates hostapd can be provided with multiple config files but it's not clear to me if that's intended for multiple APs or something else.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks for the info.
I have a customized service file. calling hostapd with multiple configuration files works as well.
I just thought there might be a cleaner way to run multiple AP's. something like with netctl@interface.
Offline