File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Defaults for hostapd initscript
2+ #
3+ # WARNING: The DAEMON_CONF setting has been deprecated and will be removed
4+ # in future package releases.
5+ #
6+ # See /usr/share/doc/hostapd/README.Debian for information about alternative
7+ # methods of managing hostapd.
8+ #
9+ # Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
10+ # file and hostapd will be started during system boot. An example configuration
11+ # file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
12+ #
13+ DAEMON_CONF="/etc/hostapd/hostapd_2g4.conf"
14+ DAEMON_CONF2="/etc/hostapd/hostapd_5g.conf"
15+ DAEMON_CONF3="/etc/hostapd/hostapd_6g.conf"
16+
17+ # Additional daemon options to be appended to hostapd command:-
18+ # -d show more debug messages (-dd for even more)
19+ # -K include key data in debug messages
20+ # -t include timestamps in some debug messages
21+ #
22+ # Note that -B (daemon mode) and -P (pidfile) options are automatically
23+ # configured by the init.d script and must not be added to DAEMON_OPTS.
24+ #
25+ #DAEMON_OPTS=""
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Access point and authentication server for Wi-Fi 5G and Ethernet
3+ Documentation =man:hostapd(8)
4+ After =network.target
5+
6+ [Service]
7+ Type =forking
8+ PIDFile =/run/hostapd2.pid
9+ Restart =on-failure
10+ RestartSec =2
11+ Environment =DAEMON_CONF =/etc/hostapd/hostapd.conf
12+ EnvironmentFile =-/etc/default/hostapd
13+ ExecStart =/usr/sbin/hostapd -B -P /run/hostapd2.pid $DAEMON2_OPTS ${DAEMON_CONF2}
14+ StandardOutput =append:/var/log/hostapd2.log
15+ StandardError =append:/var/log/hostapd2_error.log
16+
17+ [Install]
18+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Access point and authentication server for Wi-Fi 6G and Ethernet
3+ Documentation =man:hostapd(8)
4+ After =network.target
5+
6+ [Service]
7+ Type =forking
8+ PIDFile =/run/hostapd3.pid
9+ Restart =on-failure
10+ RestartSec =2
11+ Environment =DAEMON_CONF =/etc/hostapd/hostapd.conf
12+ EnvironmentFile =-/etc/default/hostapd
13+ ExecStart =/usr/sbin/hostapd -B -P /run/hostapd3.pid $DAEMON3_OPTS ${DAEMON_CONF3}
14+ StandardOutput =append:/var/log/hostapd3.log
15+ StandardError =append:/var/log/hostapd3_error.log
16+
17+ [Install]
18+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments