mirror of https://gitee.com/openkylin/wpa.git
17 lines
417 B
SYSTEMD
17 lines
417 B
SYSTEMD
[Unit]
|
|
Description=Access point and authentication server for Wi-Fi and Ethernet
|
|
Documentation=man:hostapd(8)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/run/hostapd.pid
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
Environment=DAEMON_CONF=/etc/hostapd/hostapd.conf
|
|
EnvironmentFile=-/etc/default/hostapd
|
|
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|