added stop command in sat.sh launching script
This commit is contained in:
parent
5cc2716b73
commit
edb548ee1d
1 changed files with 9 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue