Lines Matching defs:running
427 // Check if the server is running or not.
429 // the server is running or not and false otherwise.
431 ServiceReturnCode isServerRunning(BOOL *running, BOOL mustDebug)
438 debug("Determining if the server is running.");
448 "When determining whether the server is running, the lock file name is '%s'.",
466 debug("Able to lock '%s', so the server is not running.", lockFile);
468 *running = FALSE;
477 debug("Unable to lock '%s', so the server is running.", lockFile);
479 *running = TRUE;
483 *running = FALSE;
494 debug("Could not open lock file '%s', which means the server is not running.",
497 *running = FALSE;
504 *running = FALSE;
577 BOOL running;
578 // Just check once if the server is running or not: since the wait
581 isServerRunning(&running, TRUE);
582 if (running)
585 debug("doStartApplication: server running.");
590 debug("doStartApplication: server not running.");
595 // Try to see if server is really running
599 BOOL running = FALSE;
618 while ((nTries > 0) && !running)
621 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
625 if (!running)
632 if (running)
635 debug("doStartApplication: server running.");
640 debug("doStartApplication: server not running.");
682 BOOL running = TRUE;
689 while ((nTries > 0) && running)
691 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
695 if (running)
700 if (!running)
1027 BOOL running;
1089 if (isServerRunning(&running, TRUE) != SERVICE_RETURN_OK)
1091 running = FALSE;
1095 if (!running && code == SERVICE_RETURN_OK)
1161 running = FALSE;
1176 code = isServerRunning(&running, FALSE);
1181 else if (running)
1277 BOOL running;
1360 code = isServerRunning(&running, TRUE);
1365 else if (running)
1368 debug("serviceHandler: service running.");
1551 SERVICE_STATE_ALL, // all services (running & stopped)
2091 // executable is installed is running as a service or not.
2092 // Returns 0 if the instance is running as a service and print the
2094 // Returns 1 if the instance is not running as a service.
2096 // is running as a service or not.
2412 BOOL running;
2415 code = isServerRunning(&running, TRUE);