Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for Exit (0.31 sec)

  1. cmd/signals.go

    )
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		if globalLoggerOutput != nil {
    			globalLoggerOutput.Close()
    		}
    
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    		defer globalProfilerMu.Unlock()
    		for _, p := range globalProfiler {
    			p.Stop()
    		}
    
    		if success {
    			os.Exit(0)
    		}
    
    		os.Exit(1)
    	}
    
    	stopProcess := func() bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. buildscripts/heal-inconsistent-versions.sh

    MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server)
    
    if [ ! -x "$PWD/minio" ]; then
    	echo "minio executable binary not found in current directory"
    	exit 1
    fi
    
    if [ ! -x "$PWD/minio" ]; then
    	echo "minio executable binary not found in current directory"
    	exit 1
    fi
    
    function start_minio_4drive() {
    	start_port=$1
    
    	export MINIO_ROOT_USER=minio
    	export MINIO_ROOT_PASSWORD=minio123
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 26 05:07:25 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. buildscripts/verify-healing.sh

    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	if ! ps -p $pid2 1>&2 >/dev/null; then
    		echo "server2 log:"
    		cat "${WORK_DIR}/dist-minio-server2.log"
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	if ! ps -p $pid3 1>&2 >/dev/null; then
    		echo "server3 log:"
    		cat "${WORK_DIR}/dist-minio-server3.log"
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	if ! pkill minio; then
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:55:41 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  4. buildscripts/verify-build.sh

    		exit 1
    	fi
    
    	echo "Testing in Distributed Erasure setup"
    	if ! run_test_dist_erasure; then
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	echo "Testing in Erasure setup as sets"
    	if ! run_test_erasure_sets; then
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	echo "Testing in Distributed Eraure expanded setup"
    	if ! run_test_pool_erasure_sets; then
    		echo "FAILED"
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 26 05:07:25 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  5. buildscripts/gen-ldflags.go

    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	t, err := time.Parse(time.RFC3339, strings.TrimSpace(string(commitUnix)))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	return t.UTC()
    }
    
    func main() {
    	var version string
    	if len(os.Args) > 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. helm/minio/templates/_helper_create_svcacct.txt

        echo \"Failed attempts: $ATTEMPTS\" ;
        if [ $ATTEMPTS -gt $LIMIT ]; then
          exit 1 ;
        fi ;
        sleep 2 ; # 2 second intervals between attempts
        $MC_COMMAND ;
        STATUS=$? ;
      done ;
      set -e ; # reset `e` as active
      return 0
    }
    
    # checkSvcacctExists ()
    # Check if the svcacct exists, by using the exit code of `mc admin user svcacct info`
    checkSvcacctExists() {
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 23:20:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. internal/logger/console.go

    )
    
    // ConsoleLoggerTgt is a stringified value to represent console logging
    const ConsoleLoggerTgt = "console+http"
    
    // ExitFunc is called by Fatal() class functions, by default it calls os.Exit()
    var ExitFunc = os.Exit
    
    // Logger interface describes the methods that need to be implemented to satisfy the interface requirements.
    type Logger interface {
    	json(msg string, args ...interface{})
    	quiet(msg string, args ...interface{})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. buildscripts/minio-upgrade.sh

    	if [ "${sum1_heal}" != "${sum1}" ]; then
    		echo "mismatch expected ${sum1_heal}, got ${sum1}"
    		exit 1
    	fi
    }
    
    verify_checksum_mc() {
    	local expected
    	expected=$(mc cat "$1" | sha256sum)
    	local got
    	got=$(mc cat "$2" | sha256sum)
    
    	if [ "${expected}" != "${got}" ]; then
    		echo "mismatch - expected ${expected}, got ${got}"
    		exit 1
    	fi
    	echo "matches - ${expected}, got ${got}"
    }
    
    add_alias() {
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 11:39:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  9. helm-releases/minio-5.0.5.tgz

    ; STATUS=$? ; until [ $STATUS = 0 ] do ATTEMPTS=`expr $ATTEMPTS + 1` ; echo \"Failed attempts: $ATTEMPTS\" ; if [ $ATTEMPTS -gt $LIMIT ]; then exit 1 ; fi ; sleep 2 ; # 1 second intervals between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # checkBucketExists ($bucket) # Check if the bucket exists, by using the exit code of `mc ls` checkBucketExists() { BUCKET=$1 CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1) return $? } # createBucket ($bucket, $policy,...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 03 20:54:02 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  10. helm-releases/minio-5.0.7.tgz

    ; STATUS=$? ; until [ $STATUS = 0 ] do ATTEMPTS=`expr $ATTEMPTS + 1` ; echo \"Failed attempts: $ATTEMPTS\" ; if [ $ATTEMPTS -gt $LIMIT ]; then exit 1 ; fi ; sleep 2 ; # 1 second intervals between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # checkBucketExists ($bucket) # Check if the bucket exists, by using the exit code of `mc ls` checkBucketExists() { BUCKET=$1 CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1) return $? } # createBucket ($bucket, $policy,...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 13 10:37:23 GMT 2023
    - 20.3K bytes
    - Viewed (0)
Back to top