Lines Matching defs:pidFile
36 BOOL getPidFile(const char* instanceDir, char* pidFile, unsigned int maxSize)
45 sprintf(pidFile, "%s\\logs\\server.pid", instanceDir);
47 debug("PID file name is '%s'.", pidFile);
90 char pidFile[PATH_SIZE];
95 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
97 while (fileExists(pidFile) && (nTries > 0) && !returnValue)
100 if (remove(pidFile) == 0)
102 debug("Successfully removed PID file: '%s'.", pidFile);
127 char pidFile[PATH_SIZE];
133 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
135 if ((f = fopen(pidFile, "r")) != NULL)
138 debug("Read '%s' from the PID file '%s'.", buf, pidFile);
149 debug(msg, pidFile);
150 fprintf(stderr, msg, pidFile);
239 char pidFile[PATH_SIZE];
244 if (getPidFile(instanceDir, pidFile, PATH_SIZE))
246 if ((f = fopen(pidFile, "w")) != NULL)
251 debug("Successfully put pid=%d in the pid file '%s'.", pid, pidFile);
255 debugError("Couldn't create the pid file '%s' because the file could not be opened.", pidFile);