Lines Matching defs:running
426 // Check if the server is running or not.
428 // the server is running or not and false otherwise.
430 ServiceReturnCode isServerRunning(BOOL *running, BOOL mustDebug)
437 debug("Determining if the server is running.");
447 "When determining whether the server is running, the lock file name is '%s'.",
465 debug("Able to lock '%s', so the server is not running.", lockFile);
467 *running = FALSE;
476 debug("Unable to lock '%s', so the server is running.", lockFile);
478 *running = TRUE;
482 *running = FALSE;
493 debug("Could not open lock file '%s', which means the server is not running.",
496 *running = FALSE;
503 *running = FALSE;
576 BOOL running;
577 // Just check once if the server is running or not: since the wait
580 isServerRunning(&running, TRUE);
581 if (running)
584 debug("doStartApplication: server running.");
589 debug("doStartApplication: server not running.");
594 // Try to see if server is really running
598 BOOL running = FALSE;
617 while ((nTries > 0) && !running)
620 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
624 if (!running)
631 if (running)
634 debug("doStartApplication: server running.");
639 debug("doStartApplication: server not running.");
681 BOOL running = TRUE;
688 while ((nTries > 0) && running)
690 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
694 if (running)
699 if (!running)
1026 BOOL running;
1088 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
1090 running = FALSE;
1094 if (!running && code == SERVICE_RETURN_OK)
1160 running = FALSE;
1175 code = isServerRunning(&running, FALSE);
1180 else if (running)
1276 BOOL running;
1359 code = isServerRunning(&running, TRUE);
1364 else if (running)
1367 debug("serviceHandler: service running.");
1550 SERVICE_STATE_ALL, // all services (running & stopped)
2090 // executable is installed is running as a service or not.
2091 // Returns 0 if the instance is running as a service and print the
2093 // Returns 1 if the instance is not running as a service.
2095 // is running as a service or not.
2411 BOOL running;
2414 code = isServerRunning(&running, TRUE);