Example #1
0
func (executeLinuxProcImpl *executeLinuxProcImpl) Exec(cmdLine string, dir string) error {
	if !utils.IsLinuxOS() {
		return errors.New("not linux os")
	}
	executeLinuxProc := executeLinuxProcForkChildImpl{}
	return executeLinuxProc.Exec(cmdLine, dir)
}
Example #2
0
func init() {
	quitServerProcessInfo = nil
	if utils.IsLinuxOS() {
		quitServerProcessInfo = &quitServerProcessInfoLinux{}
	}
}
Example #3
0
func init() {
	getCpuStatisticsInfo = nil
	if utils.IsLinuxOS() {
		getCpuStatisticsInfo = &GetCpuStatisticsInfoLinux{}
	}
}
Example #4
0
func getLinuxOSError() error {
	if !utils.IsLinuxOS() {
		return errors.New("not linux os")
	}
	return nil
}
Example #5
0
func init() {
	getCpuInfo = nil
	if utils.IsLinuxOS() {
		getCpuInfo = &GetCpuInfoLinux{}
	}
}
Example #6
0
func init() {
	getSystemRunTimeInfo = nil
	if utils.IsLinuxOS() {
		getSystemRunTimeInfo = &GetSystemRunTimeInfoLinux{}
	}
}
Example #7
0
func init() {
	getServerStatusInfo = nil
	if utils.IsLinuxOS() {
		getServerStatusInfo = &getServerStatusInfoLinux{}
	}
}
Example #8
0
func init() {
	getProcessInfo = nil
	if utils.IsLinuxOS() {
		getProcessInfo = &GetProcessInfoLinux{}
	}
}
func init() {
	restartServerProcessInfo = nil
	if utils.IsLinuxOS() {
		restartServerProcessInfo = &restartServerProcessInfoLinux{}
	}
}
Example #10
0
func init() {
	executeLinuxProc = nil
	if utils.IsLinuxOS() {
		executeLinuxProc = &executeLinuxProcImpl{}
	}
}
Example #11
0
func init() {
	getListenPortInfo = nil
	if utils.IsLinuxOS() {
		getListenPortInfo = &GetListenPortInfoLinux{}
	}
}
func init() {
	getProcessInfoByServerInfo = nil
	if utils.IsLinuxOS() {
		getProcessInfoByServerInfo = &getProcessInfoByServerInfoLinux{}
	}
}
Example #13
0
func init() {
	getLoaderAvgInfo = nil
	if utils.IsLinuxOS() {
		getLoaderAvgInfo = &GetLoaderAvgInfoLinux{}
	}
}