|
@@ -1,14 +1,16 @@
|
|
|
|
|
|
cd /usr/share/nginx/html/ax-node
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+netstat -anp | grep 18061 > /dev/null 2>&1
|
|
|
+
|
|
|
+if [ $? -eq 0 ]; then
|
|
|
+ pid=$(netstat -anp | grep 18061 | awk '{print $7}' | cut -d/ -f1)
|
|
|
+ kill -9 $pid
|
|
|
+fi
|
|
|
|
|
|
chmod u+x ./app
|
|
|
-
|
|
|
-nohup_pid=$(pgrep -f "nohup" | grep "./app")
|
|
|
-
|
|
|
-if [ -n "$nohup_pid" ]; then
|
|
|
-
|
|
|
- kill -9 $nohup_pid
|
|
|
-fi
|
|
|
|
|
|
current_time=$(date +"%Y-%m-%d_%H:%M:%S")
|
|
|
|