create_ap/create_ap.service
Eduardo Henrique Arnold 993bdb9ce6 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.
2014-06-03 13:45:19 +01:00

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