Files
nats-server/server/service.go
Tyler Treat 54e23a3989 Enable syslog when running as Windows service
This writes logs to the Windows event log.
2017-06-28 14:16:26 -05:00

17 lines
390 B
Go

// +build !windows
// Copyright 2012-2017 Apcera Inc. All rights reserved.
package server
// Run starts the NATS server. This wrapper function allows Windows to add a
// hook for running NATS as a service.
func Run(server *Server) error {
server.Start()
return nil
}
// isWindowsService indicates if NATS is running as a Windows service.
func isWindowsService() bool {
return false
}