dont fail when trying to stop riot and its not running
parent
5cd52e2ebd
commit
758da78659
|
@ -2,5 +2,8 @@
|
||||||
BASE_DIR=$(readlink -f $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
PIDFILE=riot.pid
|
PIDFILE=riot.pid
|
||||||
kill $(cat $PIDFILE)
|
if [ -f $PIDFILE ]; then
|
||||||
rm $PIDFILE
|
echo "stopping riot server ..."
|
||||||
|
kill $(cat $PIDFILE)
|
||||||
|
rm $PIDFILE
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue