diff --git a/bin/build_linux.sh b/bin/build_linux.sh index c3b7afe1b..6a332e7e7 100755 --- a/bin/build_linux.sh +++ b/bin/build_linux.sh @@ -7,3 +7,12 @@ go build -o ./bin/cmd ./services/cmd/main.go go build -o ./bin/mainte ./services/mainte/main.go go build -o ./bin/gateway ./services/gateway/main.go go build -o ./bin/worker ./services/worker/main.go +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=5ae6b8eacb8f065c6b6c8211febaf024a4179652b82c4c2ad59a8878cecee5e4' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": "服务构建完成" + + } + +}' diff --git a/bin/cmd b/bin/cmd index 3b5c67edc..a73f14de5 100755 Binary files a/bin/cmd and b/bin/cmd differ diff --git a/bin/gateway b/bin/gateway index 1169c78e0..cab4b3a5e 100755 Binary files a/bin/gateway and b/bin/gateway differ diff --git a/bin/mainte b/bin/mainte index fcf06a4b5..7c041e6f5 100755 Binary files a/bin/mainte and b/bin/mainte differ diff --git a/bin/start.sh b/bin/start.sh index 815f5abb3..4d3220801 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -1,5 +1,22 @@ #!/bin/sh +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=5ae6b8eacb8f065c6b6c8211febaf024a4179652b82c4c2ad59a8878cecee5e4' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", +"text": { + +"content": " 服务正在启动" + + } + +}' +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=e15fc4f867d6b83336eb720f70d0fb66de1dab49da944f33478d8e619f35c2ac' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": "* 服务正在启动" + + } + +}' ./stup.sh start dfcross_1_worker0 worker ./conf/dfcross_1_worker0.yaml sleep 1 ./stup.sh start dfcross_1_mainte mainte ./conf/dfcross_1_mainte.yaml @@ -8,4 +25,25 @@ sleep 1 sleep 1 ./stup.sh start df01_worker0 worker ./conf/df01_worker0.yaml sleep 1 -./stup.sh start df01_gateway0 gateway ./conf/df01_gateway0.yaml \ No newline at end of file +./stup.sh start df01_gateway0 gateway ./conf/df01_gateway0.yaml + +sleep 1 +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=5ae6b8eacb8f065c6b6c8211febaf024a4179652b82c4c2ad59a8878cecee5e4' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": " 服务启动完成" + + } + +}' + +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=e15fc4f867d6b83336eb720f70d0fb66de1dab49da944f33478d8e619f35c2ac' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": "* 服务启动完成" + + } + +}' diff --git a/bin/stop.sh b/bin/stop.sh index 5261379e8..87c677813 100755 --- a/bin/stop.sh +++ b/bin/stop.sh @@ -1,4 +1,23 @@ #!/bin/sh +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=5ae6b8eacb8f065c6b6c8211febaf024a4179652b82c4c2ad59a8878cecee5e4' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": " 服务停止" + + } + +}' + +curl -XPOST -s -L 'https://oapi.dingtalk.com/robot/send?access_token=e15fc4f867d6b83336eb720f70d0fb66de1dab49da944f33478d8e619f35c2ac' -H 'Content-Type: application/json' -H "charset:utf-8" -d '{"msgtype": "text", + +"text": { + +"content": "* 服务停止" + + } + +}' ./stup.sh stop df01_gateway0 ./stup.sh stop df01_mainte diff --git a/bin/worker b/bin/worker index 1497519a0..722244dac 100755 Binary files a/bin/worker and b/bin/worker differ