Lines Matching defs:pidfile
69 /* Path to pidfile. */
70 static const char *pidfile;
83 errx(EX_USAGE, "[-dFh] [-c config] [-P pidfile]");
540 * Check if pidfile's path has changed.
542 if (!foreground && pidfile == NULL &&
548 "Another hastd is already running, pidfile: %s, pid: %jd.",
552 "Unable to open or create pidfile %s",
581 * Switch to new pidfile.
1210 pidfile = optarg;
1244 if (pidfile != NULL) {
1245 if (strlcpy(cfg->hc_pidfile, pidfile,
1251 if (pidfile != NULL || !foreground) {
1256 "Another hastd is already running, pidfile: %s, pid: %jd.",
1260 * If we cannot create pidfile for other reasons,
1264 "Unable to open or create pidfile %s",
1313 if (pidfile != NULL || !foreground) {