Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
afbb45c
1
Parent(s):
4a3c8c8
debug
Browse files- startup.sh +2 -2
startup.sh
CHANGED
@@ -9,8 +9,8 @@ exec &> /app/startup.log
|
|
9 |
|
10 |
echo "#### startup.sh entered."
|
11 |
# Is startup.sh already running?
|
12 |
-
ps -ef | grep -i startup.sh
|
13 |
-
if [
|
14 |
echo "#### startup.sh already running. Exiting."
|
15 |
exit 0
|
16 |
fi
|
|
|
9 |
|
10 |
echo "#### startup.sh entered."
|
11 |
# Is startup.sh already running?
|
12 |
+
cnt=$(ps -ef | grep -i startup.sh | grep -v grep | wc -l)
|
13 |
+
if [ $cnt -gt 1 ];then
|
14 |
echo "#### startup.sh already running. Exiting."
|
15 |
exit 0
|
16 |
fi
|