We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 415e112 commit e2c851cCopy full SHA for e2c851c
1 file changed
metamorphosis-server-wrapper/bin/metaServer.sh
@@ -36,6 +36,8 @@ fi
36
function running(){
37
if [ -f "$PID_FILE" ]; then
38
pid=$(cat "$PID_FILE")
39
+ if [ -z "$pid" ]; then
40
+ return 1;
41
process=`ps aux | grep " $pid " | grep -v grep`;
42
if [ -z "$process" ]; then
43
return 1;
@@ -250,4 +252,4 @@ case $command in
250
252
help;
251
253
exit 1;
254
;;
-esac
255
+esac
0 commit comments