summaryrefslogtreecommitdiff
path: root/recipes-connectivity/hostapd/hostapd/hostapd.service
blob: 7cb308c0bec8706fad876facedb4b07a7c10d365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
After=network.target
# If using Toradex's demo-image, the default After=network.target should be
# overwritten with the below provided BindsTo and After lines to reliably start
# hostapd.
# Please refer to the developer website for further information:
# https://developer.toradex.com/knowledge-base/wi-fi-access-point-mode
#
# BindsTo=sys-subsystem-net-devices-uap0.device
# After=sys-subsystem-net-devices-uap0.device

[Service]
Type=forking
PIDFile=/run/hostapd.pid
ExecStart=@SBINDIR@/hostapd @SYSCONFDIR@/hostapd.conf -P /run/hostapd.pid -B

[Install]
WantedBy=multi-user.target