mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	* If MinIO is not being used, then do not perform the MinIO check. * If MinIO is not being used, then do not perform the MinIO check. * If MinIO is not being used, then do not perform the MinIO check. * If MinIO is not being used, then do not perform the MinIO check. * kill binary before build * Stop the process before compiling. * Stop the process before compiling.
		
			
				
	
	
		
			34 lines
		
	
	
		
			464 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			464 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//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()
 | 
						|
}
 |