From 993bdb9ce6cd746b17a3a38c9e30f83a9b94125c Mon Sep 17 00:00:00 2001 From: Eduardo Henrique Arnold Date: Tue, 3 Jun 2014 13:45:19 +0100 Subject: [PATCH] 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. --- create_ap.service | 1 + 1 file changed, 1 insertion(+) diff --git a/create_ap.service b/create_ap.service index 0ea881a..903de3e 100644 --- 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