You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//go:build mage
|
|
|
|
// +build mage
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/openimsdk/gomake/mageutil"
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
var Default = Build
|
|
|
|
|
|
|
|
func Build() {
|
|
|
|
mageutil.Build()
|
|
|
|
}
|
|
|
|
|
|
|
|
func Start() {
|
|
|
|
mageutil.InitForSSC()
|
|
|
|
err := setMaxOpenFiles()
|
|
|
|
if err != nil {
|
|
|
|
mageutil.PrintRed("setMaxOpenFiles failed " + err.Error())
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
mageutil.StartToolsAndServices()
|
|
|
|
}
|
|
|
|
|
|
|
|
func Stop() {
|
|
|
|
mageutil.StopAndCheckBinaries()
|
|
|
|
}
|
|
|
|
|
|
|
|
func Check() {
|
|
|
|
mageutil.CheckAndReportBinariesStatus()
|
|
|
|
}
|