993bdb9ce6
Inserted the ExecStop directive to kill the hostapd process in order for the script to be able to receive the SIGINT signal. This enables the cleaning process to work when requesting the service to stop.
14 lines
242 B
Desktop File
14 lines
242 B
Desktop File
[Unit]
|
|
Description=Create AP Service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/bash create_ap -n -g 10.0.0.1 wlan0 AccessPointSSID
|
|
ExecStop=pkill hostapd
|
|
KillSignal=SIGINT
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|