Update service file to fix cleaning process
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.
This commit is contained in:
parent
104c55606f
commit
993bdb9ce6
@ -4,6 +4,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user