Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleSignals (0.31 sec)

  1. cmd/signals.go

    package cmd
    
    import (
    	"context"
    	"errors"
    	"net/http"
    	"os"
    	"strings"
    
    	"github.com/coreos/go-systemd/v22/daemon"
    	"github.com/minio/minio/internal/logger"
    )
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    		defer globalProfilerMu.Unlock()
    		for _, p := range globalProfiler {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. cmd/server-main.go

    // serverMain handler called for 'minio server' command.
    func serverMain(ctx *cli.Context) {
    	var warnings []string
    
    	signal.Notify(globalOSSignalCh, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
    
    	go handleSignals()
    
    	setDefaultProfilerRates()
    
    	// Initialize globalConsoleSys system
    	bootstrapTrace("newConsoleLogger", func() {
    		globalConsoleSys = NewConsoleLogger(GlobalContext)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 33K bytes
    - Viewed (1)
Back to top