func GetBMServerService(executable string) *service.Config {
	ParseOptions(&opts)

	var arguments []string
	arguments = append(arguments, "--service")

	config.LoadServerConfig(opts.Config)
	arguments = append(arguments, "--config="+config.LoadedServerConfigPath)

	svcConfig := getServiceConfig("BM-Server", "BitMaelum server", "BitMaelum server service", executable, arguments)

	if svcConfig == nil {
		return nil
	}

	if opts.UserName != "" {
		svcConfig.UserName = opts.UserName
	}

	return svcConfig
}
// GetBMServerService will return the service info
GetBMServerService will return the service info
// GetBMServerService will return the service info
func GetBMServerService(executable string) *service.Config {
	ParseOptions(&opts)
	var arguments []string
	arguments = append(arguments, "--service")
	config.LoadServerConfig(opts.Config)
	arguments = append(arguments, "--config="+config.LoadedServerConfigPath)
	svcConfig := getServiceConfig("BM-Server", "BitMaelum server", "BitMaelum server service", executable, arguments)
	if svcConfig == nil {
		return nil
	}
	if opts.UserName != "" {
		svcConfig.UserName = opts.UserName
	}
	return svcConfig
}
func GetBMServerService ( executable string ) * service . Config { ParseOptions ( & opts ) var arguments [ ] string arguments = append ( arguments , " " ) config . LoadServerConfig ( opts . Config ) arguments = append ( arguments , " " + config . LoadedServerConfigPath ) svcConfig := getServiceConfig ( " " , " " , " " , executable , arguments ) if svcConfig == nil { return nil } if opts . UserName != " " { svcConfig . UserName = opts . UserName } return svcConfig }
GetBMServerService will return the service info
GetBMServerService will return the service info