Home | History | Annotate | Download | only in compat

Lines Matching refs:pidfile

81 static char *pidfile = NULL;
506 fd = open(pidfile, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0644);
509 fd = open(pidfile, O_RDONLY);
511 syslog(LOG_ERR, "Could not read old pidfile: %s(%d)",
524 syslog(LOG_ERR, "Could not fdopen old pidfile: %s(%d)",
539 syslog(LOG_INFO, "Removing stale pidfile");
540 unlink(pidfile);
546 pidfile = NULL;
555 syslog(LOG_ERR, "Could not fdopen new pidfile: %s(%d)",
558 unlink(pidfile);
589 { "pidfile", 1, 0, 'P' },
622 "\t--pidfile -P <pidfile> Create PID file\n"
722 pidfile = strdup(optarg);
803 if (pidfile && write_pidfile()) {
828 if (pidfile)
829 unlink(pidfile);