Lines Matching refs:pidfile
71 /* Path to pidfile. */
72 static const char *pidfile;
85 errx(EX_USAGE, "[-dFh] [-c config] [-P pidfile]");
542 * Check if pidfile's path has changed.
544 if (!foreground && pidfile == NULL &&
550 "Another hastd is already running, pidfile: %s, pid: %jd.",
554 "Unable to open or create pidfile %s",
583 * Switch to new pidfile.
1212 pidfile = optarg;
1247 if (pidfile != NULL) {
1248 if (strlcpy(cfg->hc_pidfile, pidfile,
1254 if (pidfile != NULL || !foreground) {
1259 "Another hastd is already running, pidfile: %s, pid: %jd.",
1263 * If we cannot create pidfile for other reasons,
1267 "Unable to open or create pidfile %s",
1316 if (pidfile != NULL || !foreground) {