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:
Eduardo Henrique Arnold 2014-06-03 13:45:19 +01:00
parent 104c55606f
commit 993bdb9ce6

View File

@ -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