Пример #1
0
func main() {
	o.SetLogName("conductor")

	// parse command line options.
	flag.Parse()

	// Start the client registry - configuration parsing will block indefinately
	// if the registry listener isn't working
	StartRegistry()

	// do an initial configuration load - must happen before
	// MakeSpoolDir and InitDispatch()
	ConfigLoad()

	// Clean up our environment
	os.Chdir("/")
	syscall.Umask(0000)

	// Build the Spool Tree if necessary
	MakeSpoolDir()

	// Load any old state we had.
	LoadState()
	defer SaveState()

	// start the master dispatch system
	InitDispatch()

	// start the status listener
	StartHTTP()
	// start the audience listener
	StartAudienceSock()
	// service TLS requests.
	ServiceRequests()
}
Пример #2
0
func main() {
	o.SetLogName("player")

	flag.Parse()

	ConfigLoad()
	LoadScores()
	ProcessingLoop()
}
Пример #3
0
func main() {
	o.SetLogName("player")

	flag.Parse()

	os.Chdir("/")
	syscall.Umask(0000)

	ConfigLoad()
	LoadScores()
	ProcessingLoop()
}
Пример #4
0
func main() {
	o.SetLogName("conductor")

	// parse command line options.
	flag.Parse()

	// Start the client registry - configuration parsing will block indefinately
	// if the registry listener isn't working
	StartRegistry()
	// do an initial configuration load
	ConfigLoad()

	// start the master dispatch system
	InitDispatch()
	defer CleanDispatch()

	// start the status listener
	StartHTTP()
	// start the audience listener
	StartAudienceSock()
	// service TLS requests.
	ServiceRequests()
}