Rewrite systemd unit for hostapd

fixes: #2
This commit is contained in:
jonas
2021-11-05 13:58:12 +01:00
parent 26c92664fd
commit d39b2edb17
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
BindsTo=sys-subsystem-net-devices-{{ pillar['network']['wireless'] }}.device
After=sys-subsystem-net-devices-{{ pillar['network']['wireless'] }}.device
[Service]
ExecStart=/usr/sbin/hostapd /etc/hostapd.conf
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target