예제 #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
파일: player.go 프로젝트: anchor/orchestra
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()
}