mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 13:22:11 +08:00
Script Refactoring
This commit is contained in:
parent
86cd9097a6
commit
ae6c3cc349
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -15,4 +16,6 @@ func main() {
|
|||||||
|
|
||||||
// Print the values of the flags
|
// Print the values of the flags
|
||||||
fmt.Printf("args: -i %d -c %s\n", *index, *config)
|
fmt.Printf("args: -i %d -c %s\n", *index, *config)
|
||||||
|
|
||||||
|
time.Sleep(600 * time.Second)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,12 +36,11 @@ for binary in "${!binaries[@]}"; do
|
|||||||
|
|
||||||
result=$(openim::util::check_process_names "$full_path" "$expected_count")
|
result=$(openim::util::check_process_names "$full_path" "$expected_count")
|
||||||
|
|
||||||
echo $result 1111111111111111112222
|
if [ "$result" -eq 0 ]; then
|
||||||
if [ "$result" -eq 0 ]; then
|
echo "Startup successful for $binary"
|
||||||
echo "ok $binary"
|
else
|
||||||
else
|
echo "Startup failed for $binary, $result processes missing."
|
||||||
echo "failed $binary, miss $result "
|
fi
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user