handle service's stop correctly

This commit is contained in:
oblique
2014-08-17 04:22:23 +03:00
parent d388c593ab
commit 92b696efcf
2 changed files with 10 additions and 5 deletions

View File

@ -4,8 +4,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/bash create_ap -n -g 10.0.0.1 wlan0 AccessPointSSID
ExecStop=pkill hostapd
ExecStart=/usr/bin/create_ap -n -g 10.0.0.1 wlan0 AccessPointSSID
KillSignal=SIGINT
Restart=on-failure
RestartSec=5