diff --git a/PriceSystem/scripts/start_price_system.sh b/PriceSystem/scripts/start_price_system.sh new file mode 100644 index 0000000..cc79070 --- /dev/null +++ b/PriceSystem/scripts/start_price_system.sh @@ -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 "均价系统启动成功" diff --git a/PriceSystem/scripts/start_price_system_all.sh b/PriceSystem/scripts/start_price_system_all.sh new file mode 100644 index 0000000..51a6c1b --- /dev/null +++ b/PriceSystem/scripts/start_price_system_all.sh @@ -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 diff --git a/PriceSystem/scripts/start_rent_system.sh b/PriceSystem/scripts/start_rent_system.sh new file mode 100644 index 0000000..6777f28 --- /dev/null +++ b/PriceSystem/scripts/start_rent_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 "均价系统启动成功" diff --git a/PriceSystem/scripts/start_rent_system_all.sh b/PriceSystem/scripts/start_rent_system_all.sh new file mode 100644 index 0000000..f3a3b13 --- /dev/null +++ b/PriceSystem/scripts/start_rent_system_all.sh @@ -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 diff --git a/PriceSystem/scripts/stop_price_system.sh b/PriceSystem/scripts/stop_price_system.sh new file mode 100644 index 0000000..ec4d0a9 --- /dev/null +++ b/PriceSystem/scripts/stop_price_system.sh @@ -0,0 +1,3 @@ +#!/bin/bash +touch ~/price.sys.stop +echo "均价系统停止" diff --git a/PriceSystem/scripts/stop_price_system_all.sh b/PriceSystem/scripts/stop_price_system_all.sh new file mode 100644 index 0000000..14856c3 --- /dev/null +++ b/PriceSystem/scripts/stop_price_system_all.sh @@ -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 diff --git a/PriceSystem/scripts/stop_rent_system.sh b/PriceSystem/scripts/stop_rent_system.sh new file mode 100644 index 0000000..3880f83 --- /dev/null +++ b/PriceSystem/scripts/stop_rent_system.sh @@ -0,0 +1,3 @@ +#!/bin/bash +touch ~/rent.sys.stop +echo "均价系统停止" diff --git a/PriceSystem/scripts/stop_rent_system_all.sh b/PriceSystem/scripts/stop_rent_system_all.sh new file mode 100644 index 0000000..0601ced --- /dev/null +++ b/PriceSystem/scripts/stop_rent_system_all.sh @@ -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