Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for pidFile (0.17 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PidInstrumentation.groovy

    @PackageScope
    class PidInstrumentation {
    
        private final File pidFile = createPidFile()
        private final File pidFileInitScript = createPidFileInitScript(pidFile)
    
        List<String> getGradleArgs() {
            ["--init-script", pidFileInitScript.absolutePath]
        }
    
        String getPid() {
            pidFile.text
        }
    
        private static File createPidFile() {
            def pidFile = File.createTempFile("build-under-test", ".pid")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/packaging/rpm/init.d/fess

        fi
        if [ -n "$pidfile" ] && [ ! -e "$pidfile" ]; then
            touch "$pidfile" && chown "$FESS_USER":"$FESS_GROUP" "$pidfile"
        fi
    
        echo -n $"Starting $prog: "
        # if not running, start it up here, usually something like "daemon $exec"
        daemon --user $FESS_USER --pidfile="$pidfile" $exec -d
        retval=$?
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/main/assemblies/files/fess

            if [ x"$pidfile" != "x" ] ; then
                echo $! > $pidfile
            fi
            return $?
        fi
    }
    
    # Print command line usage / help
    usage() {
        echo "Usage: $0 [-vdh] [-p pidfile] [-D prop] [-X prop]"
        echo "Start fess."
        echo "    -d            daemonize (run in background)"
        echo "    -p pidfile    write PID to <pidfile>"
        echo "    -h"
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. build/build-image/rsyncd.sh

    CONFDIR="/tmp/rsync.k8s"
    PIDFILE="${CONFDIR}/rsyncd.pid"
    CONFFILE="${CONFDIR}/rsyncd.conf"
    SECRETS="${CONFDIR}/rsyncd.secrets"
    
    mkdir -p "${CONFDIR}"
    
    if [[ -f "${PIDFILE}" ]]; then
      PID=$(cat "${PIDFILE}")
      echo "Cleaning up old PID file: ${PIDFILE}"
      kill "${PID}" &> /dev/null || true
      rm "${PIDFILE}"
    fi
    
    PASSWORD=$(</rsyncd.password)
    
    cat <<EOF >"${SECRETS}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 04 15:58:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonProcessFailureIntegrationTest.groovy

            """
    
            when:
            succeeds("compileJava")
    
            then:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            kill(pid1)
    
            when:
            args "--rerun-tasks"
            succeeds("compileJava")
    
            then:
            pidFile().exists()
            def pid2 = pidFile().text.strip() as long
            pid2 != pid1
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 18:43:14 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            then:
            handler.waitForAllPendingCalls()
    
            then:
            cancelBuild()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            new ProcessFixture(pid1).waitForFinish()
    
            when:
            handler = blockingHttpServer.expectAndBlock("/block")
            startBuild("compileJava")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ContinuousBuildToolingApiSpecification.groovy

            stdout.reset()
            stderr.reset()
            return executionOutput
        }
    
        def requestJstackForBuildProcess() {
            def pidFile = file("build/build.pid")
            if (pidFile.exists()) {
                def pid = pidFile.text
                def jdkBinDir = new File(System.getProperty("java.home"), "../bin").canonicalFile
                if (jdkBinDir.isDirectory() && new File(jdkBinDir, "jstack").exists()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  8. src/packaging/deb/init.d/fess

    	;;		
      stop)
    	log_daemon_msg "Stopping $DESC"
    
    	if [ -f "$PID_FILE" ]; then 
    		start-stop-daemon --stop --pidfile "$PID_FILE" \
    			--user "$FESS_USER" \
    			--quiet \
    			--retry forever/TERM/20 > /dev/null
    		if [ $? -eq 1 ]; then
    			log_progress_msg "$DESC is not running but pid file exists, cleaning up"
    		elif [ $? -eq 3 ]; then
    			PID="`cat $PID_FILE`"
    			log_failure_msg "Failed to stop $DESC (pid $PID)"
    			exit 1
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/main/assemblies/files/service.bat

    org.codelibs.fess.FessBoot --StopClass org.codelibs.fess.FessBoot --StartMethod main --StopMethod shutdown --Classpath "%FESS_CLASSPATH%" --JvmSs %JVM_SS% --JvmMs %JVM_XMS% --JvmMx %JVM_XMX% --JvmOptions %JVM_OPTS% ++JvmOptions %FESS_PARAMS% %LOG_OPTS% --PidFile "%SERVICE_ID%.pid" --DisplayName "%SERVICE_DISPLAY_NAME%" --Description "%SERVICE_DESCRIPTION%" --Jvm "%%JAVA_HOME%%%JVM_DLL%" --StartMode jvm --StopMode jvm --StartPath "%FESS_HOME%" %SERVICE_PARAMS% ++StartParams start
    
    if not errorlevel...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildSessionServiceReuseContinuousIntegrationTest.groovy

                    inputs.file file("$triggerFileName")
                    outputs.file "$idFileName"
                    doLast {
                        def idFile = file("${idFileName}")
                        def service = services.get(${service})
                        idFile << System.identityHashCode(service) + "\\n"
                    }
                }
            """
    
            when:
            triggerFile << "content"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top