1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/network/templates/hostapd/hostapd.service.j2
2020-05-07 12:03:51 -05:00

17 lines
430 B
Django/Jinja

[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Wants=network-pre.target
After=network-pre.target
After=clone-wifi.service
Requires=clone-wifi.service
[Service]
Type=forking
#Restart=on-failure
#RestartSec=2
PIDFile=/run/hostapd.pid
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf
ExecStartPost=-/sbin/ip link set ap0 up
[Install]
WantedBy=multi-user.target