Lines Matching defs:pidfile
59 const char *pidfile, *ppidfile, *user;
64 ppidfile = pidfile = user = NULL;
74 pidfile = optarg;
97 * Try to open the pidfile before calling daemon(3),
100 if (pidfile != NULL) {
101 pfh = pidfile_open(pidfile, 0600, &otherpid);
107 err(2, "pidfile ``%s''", pidfile);
129 /* Write out parent pidfile if needed. */
133 * If the pidfile or restart option is specified the daemon
135 * exit to remove the pidfile or restart the command. Normally
137 * leaving the running process and the stale pidfile, so we
142 if (pidfile != NULL || ppidfile != NULL || restart) {
178 * we could wait for it to exit and remove pidfile.