| 1 |
[Unit] |
| 2 |
Description=Access point and authentication server for Wi-Fi and Ethernet |
| 3 |
Documentation=man:hostapd(8) |
| 4 |
After=network.target |
| 5 |
ConditionFileNotEmpty=/etc/hostapd/hostapd.conf |
| 6 |
|
| 7 |
[Service] |
| 8 |
Type=forking |
| 9 |
PIDFile=/run/hostapd.pid |
| 10 |
Restart=on-failure |
| 11 |
RestartSec=2 |
| 12 |
Environment=DAEMON_CONF=/etc/hostapd/hostapd.conf |
| 13 |
EnvironmentFile=-/etc/default/hostapd |
| 14 |
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF} |
| 15 |
|
| 16 |
[Install] |
| 17 |
WantedBy=multi-user.target |