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 (
|
||||
"flag"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -15,4 +16,6 @@ func main() {
|
||||
|
||||
// Print the values of the flags
|
||||
fmt.Printf("args: -i %d -c %s\n", *index, *config)
|
||||
|
||||
time.Sleep(600 * time.Second)
|
||||
}
|
||||
|
||||
@ -36,11 +36,10 @@ for binary in "${!binaries[@]}"; do
|
||||
|
||||
result=$(openim::util::check_process_names "$full_path" "$expected_count")
|
||||
|
||||
echo $result 1111111111111111112222
|
||||
if [ "$result" -eq 0 ]; then
|
||||
echo "ok $binary"
|
||||
echo "Startup successful for $binary"
|
||||
else
|
||||
echo "failed $binary, miss $result "
|
||||
echo "Startup failed for $binary, $result processes missing."
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user