commit 993bdb9ce6cd746b17a3a38c9e30f83a9b94125c
parent 104c55606f9bee4fffe3aae67603dde8818c595e
Author: Eduardo Henrique Arnold <eduardoarnoldh@gmail.com>
Date: Tue, 3 Jun 2014 13:45:19 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/create_ap.service b/create_ap.service
@@ -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