Lines Matching defs:pidFile
35 BOOL getPidFile(const char* instanceDir, char* pidFile, unsigned int maxSize)
44 sprintf(pidFile, "%s\\logs\\server.pid", instanceDir);
46 debug("PID file name is '%s'.", pidFile);
89 char pidFile[PATH_SIZE];
94 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
96 while (fileExists(pidFile) && (nTries > 0) && !returnValue)
99 if (remove(pidFile) == 0)
101 debug("Successfully removed PID file: '%s'.", pidFile);
126 char pidFile[PATH_SIZE];
132 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
134 if ((f = fopen(pidFile, "r")) != NULL)
137 debug("Read '%s' from the PID file '%s'.", buf, pidFile);
148 debug(msg, pidFile);
149 fprintf(stderr, msg, pidFile);
238 char pidFile[PATH_SIZE];
243 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
245 if ((f = fopen(pidFile, "w")) != NULL)
250 debug("Successfully put pid=%d in the pid file '%s'.", pid, pidFile);
254 debugError("Couldn't create the pid file '%s' because the file could not be opened.", pidFile);