Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for Exit (0.25 sec)

  1. cmd/signals.go

    	"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 {
    			p.Stop()
    		}
    
    		if success {
    			os.Exit(0)
    		}
    
    		os.Exit(1)
    	}
    
    	stopProcess := func() bool {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/main/assemblies/files/generate-thumbnail

      convert -thumbnail ${image_size} "${target_file}" "${output_file}"
    elif [[ x"${cmd_type}" = "x" ]] ; then
      echo "No filetype."
      exit 1
    else
      echo "Unsupported type: ${cmd_type}"
      exit 1
    fi
    
    if [[ ! -f ${output_file} ]] ; then
      echo "Thumbnail is not created."
      exit 1
    Shell Script
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Mon Jun 12 13:13:28 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  3. misc/wasm/wasm_exec_node.js

    require("./wasm_exec");
    
    const go = new Go();
    go.argv = process.argv.slice(2);
    go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Jan 30 18:49:42 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  4. docs/site-replication/run-ssec-object-replication.sh

    	exit_1
    fi
    count2=$(./mc ls minio1/test-bucket/encrypted --insecure | wc -l)
    if [ "${count2}" -ne 1 ]; then
    	echo "BUG: object minio1/test-bucket/encrypted not found"
    	exit_1
    fi
    count3=$(./mc ls minio1/test-bucket/defpartsize --insecure | wc -l)
    if [ "${count3}" -ne 1 ]; then
    	echo "BUG: object minio1/test-bucket/defpartsize not found"
    	exit_1
    fi
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  5. docs/distributed/decom-encrypted-sse-s3.sh

    	echo "BUG: original user count differs from expanded setup"
    	exit 1
    fi
    
    if [ $policy_count -ne $expanded_policy_count ]; then
    	echo "BUG: original policy count  differs from expanded setup"
    	exit 1
    fi
    
    ./mc version info myminio/versioned | grep -q "versioning is enabled"
    ret=$?
    if [ $ret -ne 0 ]; then
    	echo "expected versioning enabled after expansion"
    	exit 1
    fi
    
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 14 15:54:11 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. docs/debugging/inspect/main.go

    		os.Exit(1)
    	}
    
    	// dump private key to file
    	privateKeyBytes := x509.MarshalPKCS1PrivateKey(privatekey)
    	privateKeyBlock := &pem.Block{
    		Type:  "RSA PRIVATE KEY",
    		Bytes: privateKeyBytes,
    	}
    	privatePem, err := os.Create("support_private.pem")
    	if err != nil {
    		fmt.Printf("error when create private.pem: %s n", err)
    		os.Exit(1)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. misc/go_android_exec/exitcode_test.go

    		}
    		f.Write([]byte(text))
    		_, err := f.Finish()
    		// We should get a no exit code error
    		if err == nil || !wantErr.MatchString(err.Error()) {
    			t.Errorf("want error matching %s, got %s", wantErr, err)
    		}
    		// And it should flush all output (even if it looks
    		// like we may be getting an exit code)
    		if got := out.String(); text != got {
    			t.Errorf("want full output %q, got %q", text, got)
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  8. src/packaging/rpm/init.d/fess

    rh_status_q() {
        rh_status >/dev/null 2>&1
    }
    
    
    case "$1" in
        start)
            rh_status_q && exit 0
            $1
            ;;
        stop)
            rh_status_q || exit 0
            $1
            ;;
        restart)
            $1
            ;;
        reload)
            rh_status_q || exit 7
            $1
            ;;
        force-reload)
            force_reload
            ;;
        status)
            rh_status
    Shell Script
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Sun Jan 15 06:32:15 GMT 2023
    - 3.7K bytes
    - Viewed (1)
  9. docs/site-replication/run-multi-site-oidc.sh

    	echo "expecting the command to succeed, exiting.."
    	exit_1
    fi
    ./mc admin policy info minio3 projecta >/dev/null 2>&1
    if [ $? -ne 0 ]; then
    	echo "expecting the command to succeed, exiting.."
    	exit_1
    fi
    
    ./mc admin policy remove minio3 projecta
    
    sleep 10
    ./mc admin policy info minio1 projecta
    if [ $? -eq 0 ]; then
    	echo "expecting the command to fail, exiting.."
    	exit_1
    fi
    
    ./mc admin policy info minio2 projecta
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 26 21:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/packaging/deb/init.d/fess

    		elif [ $? -eq 3 ]; then
    			PID="`cat $PID_FILE`"
    			log_failure_msg "Failed to stop $DESC (pid $PID)"
    			exit 1
    		fi
    		rm -f "$PID_FILE"
    	else
    		log_progress_msg "(not running)"
    	fi
    	log_end_msg 0
    	;;
      status)
    	status_of_proc -p $PID_FILE fess fess && exit 0 || exit $?
        ;;
      restart|force-reload)
    	if [ -f "$PID_FILE" ]; then
    		$0 stop
    		sleep 1
    	fi
    	$0 start
    	;;
    Shell Script
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Sun Jan 15 06:32:15 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top