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