mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	
				
					committed by
					
						
						Leonard Gram
					
				
			
			
				
	
			
			
			
						parent
						
							e84f746d1d
						
					
				
				
					commit
					6f363153d7
				
			@@ -74,12 +74,15 @@ func (hs *HTTPServer) Start(ctx context.Context) error {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
	case setting.SOCKET:
 | 
			
		||||
		ln, err := net.Listen("unix", setting.SocketPath)
 | 
			
		||||
		ln, err := net.ListenUnix("unix", &net.UnixAddr{Name: setting.SocketPath, Net: "unix"})
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			hs.log.Debug("server was shutdown gracefully")
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Make socket writable by group
 | 
			
		||||
		os.Chmod(setting.SocketPath, 0660)
 | 
			
		||||
 | 
			
		||||
		err = hs.httpSrv.Serve(ln)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			hs.log.Debug("server was shutdown gracefully")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user