Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
6b3af34
1
Parent(s):
a7c85b4
debug
Browse files- startup.sh +5 -1
startup.sh
CHANGED
@@ -11,8 +11,12 @@ echo "#### startup.sh entered."
|
|
11 |
echo "### ps -ef 1"; ps -ef
|
12 |
|
13 |
# Is startup.sh already running?
|
|
|
|
|
|
|
14 |
cnt=$(ps -ef | grep -i startup.sh | wc -l)
|
15 |
-
|
|
|
16 |
echo "#### startup.sh already running. Exiting."
|
17 |
exit 0
|
18 |
fi
|
|
|
11 |
echo "### ps -ef 1"; ps -ef
|
12 |
|
13 |
# Is startup.sh already running?
|
14 |
+
echo " "
|
15 |
+
echo "### before ps and grep startup.sh"
|
16 |
+
ps -ef | grep -i startup.sh
|
17 |
cnt=$(ps -ef | grep -i startup.sh | wc -l)
|
18 |
+
echo "### cnt: $cnt"
|
19 |
+
if [ $cnt -gt 3 ];then
|
20 |
echo "#### startup.sh already running. Exiting."
|
21 |
exit 0
|
22 |
fi
|