Home | History | Annotate | Download | only in compat

Lines Matching defs:pidfile

81 static char *pidfile = NULL;
509 fd = open(pidfile, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0644);
512 fd = open(pidfile, O_RDONLY);
514 syslog(LOG_ERR, "Could not read old pidfile: %s(%d)",
527 syslog(LOG_ERR, "Could not fdopen old pidfile: %s(%d)",
542 syslog(LOG_INFO, "Removing stale pidfile");
543 unlink(pidfile);
549 pidfile = NULL;
558 syslog(LOG_ERR, "Could not fdopen new pidfile: %s(%d)",
561 unlink(pidfile);
592 { "pidfile", 1, 0, 'P' },
625 "\t--pidfile -P <pidfile> Create PID file\n"
725 pidfile = strdup(optarg);
806 if (pidfile && write_pidfile()) {
831 if (pidfile)
832 unlink(pidfile);