添加均价启动脚本
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
touch ~/price.sys.stop
|
||||
cd /home/goojia/PriceSystem
|
||||
echo "开始更新均价系统"
|
||||
git pull
|
||||
sleep 3s
|
||||
echo "均价系统更新完成"
|
||||
python /home/goojia/PriceSystem/PriceSystem/CalcCmdReceiver.py >/dev/null 2>&1 &
|
||||
echo "均价系统启动成功"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
scp /home/goojia/start_price_system.sh root@192.168.0.29:/home/goojia/start_price_system.sh
|
||||
scp /home/goojia/start_price_system.sh root@192.168.0.121:/home/goojia/start_price_system.sh
|
||||
ssh root@192.168.0.29 "/home/goojia/start_price_system.sh"
|
||||
ssh root@192.168.0.121 "/home/goojia/start_price_system.sh"
|
||||
/home/goojia/start_price_system.sh
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
touch ~/rent.sys.stop
|
||||
cd /home/goojia
|
||||
echo "开始更新均价系统"
|
||||
rm -rf PriceSystem
|
||||
git clone http://192.168.0.27/dev0/PriceSystem.git
|
||||
sleep 3s
|
||||
echo "均价系统更新完成"
|
||||
python /home/goojia/PriceSystem/PriceSystem/RentCalcCmdReceiver.py >/dev/null 2>&1 &
|
||||
echo "均价系统启动成功"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
scp /home/goojia/start_rent_system.sh root@192.168.0.29:/home/goojia/start_rent_system.sh
|
||||
scp /home/goojia/start_rent_system.sh root@192.168.0.121:/home/goojia/start_rent_system.sh
|
||||
ssh root@192.168.0.29 "/home/goojia/start_rent_system.sh"
|
||||
ssh root@192.168.0.121 "/home/goojia/start_rent_system.sh"
|
||||
/home/goojia/start_rent_system.sh
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
touch ~/price.sys.stop
|
||||
echo "均价系统停止"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
scp /home/goojia/stop_price_system.sh root@192.168.0.29:/home/goojia/stop_price_system.sh
|
||||
scp /home/goojia/stop_price_system.sh root@192.168.0.121:/home/goojia/stop_price_system.sh
|
||||
ssh root@192.168.0.29 "/home/goojia/stop_price_system.sh"
|
||||
ssh root@192.168.0.121 "/home/goojia/stop_price_system.sh"
|
||||
/home/goojia/stop_price_system.sh
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
touch ~/rent.sys.stop
|
||||
echo "均价系统停止"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
scp /home/goojia/stop_rent_system.sh root@192.168.0.29:/home/goojia/stop_rent_system.sh
|
||||
scp /home/goojia/stop_rent_system.sh root@192.168.0.121:/home/goojia/stop_rent_system.sh
|
||||
ssh root@192.168.0.29 "/home/goojia/stop_rent_system.sh"
|
||||
ssh root@192.168.0.121 "/home/goojia/stop_rent_system.sh"
|
||||
/home/goojia/stop_rent_system.sh
|
||||
Reference in New Issue
Block a user