added stop command in sat.sh launching script

This commit is contained in:
Goffi 2011-01-06 19:17:09 +01:00
commit edb548ee1d

View file

@ -1,5 +1,14 @@
#!/bin/sh
#if there is one argument which is "stop", then we kill SàT
if [ $# -eq 1 ];then
if [ $1 = "stop" ];then
echo "Terminating Salut à Toi"
pkill -f "twistd.*sat/sat.tac"
exit 0
fi
fi
NAME='sat'
PID_FILE="/tmp/$NAME.pid"