Use the new TERMINATE command through the socket to stop hlr_auc_gw
instead of depending on killall. There seemed to be some kind of race
condition with UML that could prevent cleanup previously.
Signed-off-by: Jouni Malinen <j@w1.fi>
sudo ip link set hwsim0 down
fi
+if [ -e /tmp/hlr_auc_gw.sock ]; then
+ if which -s socat; then
+ echo TERMINATE | socat - UNIX-SENDTO:/tmp/hlr_auc_gw.sock
+ sleep 0.1
+ fi
+fi
sudo killall -q hlr_auc_gw
if [ "$RUNNING" = "yes" ]; then