Lines Matching refs:pidfile
472 my ($cmd, $pidfile, $timeout, $fake)=@_;
498 if(open(OUT, ">$pidfile")) {
501 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
504 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
516 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
829 my $pidfile = $serverpidfile{$server};
830 my $pid = processexists($pidfile);
835 unlink($pidfile) if(-f $pidfile);
1066 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1068 if(open(FILE, "<$pidfile")) {
1078 unlink($pidfile);
1131 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1182 if($data && ($data =~ /(GNUTLS|GnuTLS)/) && open(FILE, "<$pidfile")) {
1191 unlink($pidfile);
1215 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1217 if(open(FILE, "<$pidfile")) {
1227 unlink($pidfile);
1437 my $pidfile;
1448 $pidfile = $serverpidfile{$server};
1451 if ($doesntrun{$pidfile}) {
1455 my $pid = processexists($pidfile);
1459 unlink($pidfile) if(-f $pidfile);
1465 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1476 ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1481 $doesntrun{$pidfile} = 1;
1485 $doesntrun{$pidfile} = 0;
1508 my $pidfile;
1530 $pidfile = $serverpidfile{$server};
1534 if ($doesntrun{$pidfile}) {
1538 my $pid = processexists($pidfile);
1542 unlink($pidfile) if(-f $pidfile);
1551 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1562 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1569 $doesntrun{$pidfile} = 1;
1586 $doesntrun{$pidfile} = 1;
1609 my $pidfile;
1624 $pidfile = $serverpidfile{$server};
1627 if ($doesntrun{$pidfile}) {
1631 my $pid = processexists($pidfile);
1635 unlink($pidfile) if(-f $pidfile);
1644 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1666 ($httpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1672 $doesntrun{$pidfile} = 1;
1699 my $pidfile;
1709 $pidfile = $serverpidfile{$server};
1712 if ($doesntrun{$pidfile}) {
1716 my $pid = processexists($pidfile);
1720 unlink($pidfile) if(-f $pidfile);
1739 ($httptlspid, $pid2) = startnew($cmd, $pidfile, 10, 1);
1745 $doesntrun{$pidfile} = 1;
1749 $doesntrun{$pidfile} = 0;
1771 my $pidfile;
1777 $pidfile = $serverpidfile{$server};
1781 if ($doesntrun{$pidfile}) {
1785 my $pid = processexists($pidfile);
1789 unlink($pidfile) if(-f $pidfile);
1796 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1803 my ($ftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1810 $doesntrun{$pidfile} = 1;
1826 $doesntrun{$pidfile} = 1;
1887 my $pidfile;
1897 $pidfile = $serverpidfile{$server};
1900 if ($doesntrun{$pidfile}) {
1904 my $pid = processexists($pidfile);
1908 unlink($pidfile) if(-f $pidfile);
1917 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1932 ($ftpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1938 $doesntrun{$pidfile} = 1;
1943 $doesntrun{$pidfile} = 0;
1968 my $pidfile;
1980 $pidfile = $serverpidfile{$server};
1984 if ($doesntrun{$pidfile}) {
1988 my $pid = processexists($pidfile);
1992 unlink($pidfile) if(-f $pidfile);
1999 $flags .= "--pidfile \"$pidfile\" ".
2006 my ($tftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2013 $doesntrun{$pidfile} = 1;
2026 $doesntrun{$pidfile} = 1;
2050 my $pidfile;
2062 $pidfile = $serverpidfile{$server};
2066 if ($doesntrun{$pidfile}) {
2070 my $pid = processexists($pidfile);
2074 unlink($pidfile) if(-f $pidfile);
2081 $flags .= "--pidfile \"$pidfile\" ".
2088 my ($rtsppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2095 $doesntrun{$pidfile} = 1;
2108 $doesntrun{$pidfile} = 1;
2132 my $pidfile;
2138 $pidfile = $serverpidfile{$server};
2141 if ($doesntrun{$pidfile}) {
2150 my $pid = processexists($pidfile);
2154 unlink($pidfile) if(-f $pidfile);
2163 $flags .= "--pidfile \"$pidfile\" ";
2184 ($sshpid, $pid2) = startnew($cmd, $pidfile, 60, 0);
2193 $doesntrun{$pidfile} = 1;
2214 $doesntrun{$pidfile} = 1;
2219 $doesntrun{$pidfile} = 0;
2260 my $pidfile;
2266 $pidfile = $serverpidfile{$server};
2270 if ($doesntrun{$pidfile}) {
2274 my $pid = processexists($pidfile);
2278 unlink($pidfile) if(-f $pidfile);
2287 " --pidfile $pidfile".
2290 my ($sockspid, $pid2) = startnew($cmd, $pidfile, 30, 0);
2296 $doesntrun{$pidfile} = 1;
2320 my $pidfile;
2326 $pidfile = $serverpidfile{$server};
2330 if ($doesntrun{$pidfile}) {
2334 my $pid = processexists($pidfile);
2338 unlink($pidfile) if(-f $pidfile);
2347 " --pidfile $pidfile".
2351 my ($sockspid, $pid2) = startnew($cmd, $pidfile, 30, 0);
2357 $doesntrun{$pidfile} = 1;
2381 my $pidfile;
2391 $pidfile = $serverpidfile{$server};
2394 if ($doesntrun{$pidfile}) {
2398 my $pid = processexists($pidfile);
2402 unlink($pidfile) if(-f $pidfile);
2409 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2420 ($dictpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2426 $doesntrun{$pidfile} = 1;
2430 $doesntrun{$pidfile} = 0;
2453 my $pidfile;
2463 $pidfile = $serverpidfile{$server};
2466 if ($doesntrun{$pidfile}) {
2470 my $pid = processexists($pidfile);
2474 unlink($pidfile) if(-f $pidfile);
2481 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2492 ($smbpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2498 $doesntrun{$pidfile} = 1;
2502 $doesntrun{$pidfile} = 0;
2525 my $pidfile;
2535 $pidfile = $serverpidfile{$server};
2538 if ($doesntrun{$pidfile}) {
2542 my $pid = processexists($pidfile);
2546 unlink($pidfile) if(-f $pidfile);
2553 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2563 ($ntelpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2569 $doesntrun{$pidfile} = 1;
2573 $doesntrun{$pidfile} = 0;
4551 my $pidfile = $serverpidfile{$server};
4552 my $pid = processexists($pidfile);
4557 unlink($pidfile) if(-f $pidfile);