diff --git a/bin/.preload.sh b/bin/.preload.sh index e0bb8ad2a..c87019a12 100644 --- a/bin/.preload.sh +++ b/bin/.preload.sh @@ -15,7 +15,7 @@ mkdir -p data/settings #to not allow process to overwrite the already running one. if [ -f $PIDFILE ]; then PID=$(cat $PIDFILE 2>/dev/null) - if kill $PID > /dev/null 2>&1; then + if [ -n $PID ]; then echo "Server is already running, please stop it and then start" exit 1 else diff --git a/html/index.html b/html/index.html index cacce9999..296172d9b 100755 --- a/html/index.html +++ b/html/index.html @@ -231,6 +231,7 @@