11 lines
85 B
Bash
Executable File
11 lines
85 B
Bash
Executable File
FILE=".pid"
|
|
|
|
stop() {
|
|
kill $(cat $FILE)
|
|
rm $FILE
|
|
}
|
|
|
|
if [ -f $FILE ]; then
|
|
stop
|
|
fi
|