Lines Matching refs:pidfile
427 my ($cmd, $pidfile, $timeout, $fake)=@_;
453 if(open(OUT, ">$pidfile")) {
456 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
459 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
471 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
752 my $pidfile = $serverpidfile{$server};
753 my $pid = processexists($pidfile);
758 unlink($pidfile) if(-f $pidfile);
989 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
991 if(open(FILE, "<$pidfile")) {
1001 unlink($pidfile);
1054 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1105 if($data && ($data =~ /(GNUTLS|GnuTLS)/) && open(FILE, "<$pidfile")) {
1114 unlink($pidfile);
1138 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1140 if(open(FILE, "<$pidfile")) {
1150 unlink($pidfile);
1360 my $pidfile;
1371 $pidfile = $serverpidfile{$server};
1374 if ($doesntrun{$pidfile}) {
1378 my $pid = processexists($pidfile);
1382 unlink($pidfile) if(-f $pidfile);
1388 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1394 my ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1400 $doesntrun{$pidfile} = 1;
1421 my $pidfile;
1443 $pidfile = $serverpidfile{$server};
1446 if ($doesntrun{$pidfile}) {
1450 my $pid = processexists($pidfile);
1454 unlink($pidfile) if(-f $pidfile);
1463 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1473 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1480 $doesntrun{$pidfile} = 1;
1491 $doesntrun{$pidfile} = 1;
1516 my $pidfile;
1526 $pidfile = $serverpidfile{$server};
1529 if ($doesntrun{$pidfile}) {
1533 my $pid = processexists($pidfile);
1537 unlink($pidfile) if(-f $pidfile);
1546 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1554 my ($httpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1561 $doesntrun{$pidfile} = 1;
1572 $doesntrun{$pidfile} = 1;
1600 my $pidfile;
1610 $pidfile = $serverpidfile{$server};
1613 if ($doesntrun{$pidfile}) {
1617 my $pid = processexists($pidfile);
1621 unlink($pidfile) if(-f $pidfile);
1635 my ($httptlspid, $pid2) = startnew($cmd, $pidfile, 10, 1); # fake pidfile
1642 $doesntrun{$pidfile} = 1;
1653 $doesntrun{$pidfile} = 1;
1678 my $pidfile;
1706 $pidfile = $serverpidfile{$server};
1709 if ($doesntrun{$pidfile}) {
1713 my $pid = processexists($pidfile);
1717 unlink($pidfile) if(-f $pidfile);
1724 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1730 my ($ftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1737 $doesntrun{$pidfile} = 1;
1748 $doesntrun{$pidfile} = 1;
1774 my $pidfile;
1784 $pidfile = $serverpidfile{$server};
1787 if ($doesntrun{$pidfile}) {
1791 my $pid = processexists($pidfile);
1795 unlink($pidfile) if(-f $pidfile);
1804 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1812 my ($ftpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1819 $doesntrun{$pidfile} = 1;
1830 $doesntrun{$pidfile} = 1;
1858 my $pidfile;
1871 $pidfile = $serverpidfile{$server};
1874 if ($doesntrun{$pidfile}) {
1878 my $pid = processexists($pidfile);
1882 unlink($pidfile) if(-f $pidfile);
1889 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1894 my ($tftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1901 $doesntrun{$pidfile} = 1;
1912 $doesntrun{$pidfile} = 1;
1939 my $pidfile;
1952 $pidfile = $serverpidfile{$server};
1955 if ($doesntrun{$pidfile}) {
1959 my $pid = processexists($pidfile);
1963 unlink($pidfile) if(-f $pidfile);
1970 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1975 my ($rtsppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1982 $doesntrun{$pidfile} = 1;
1993 $doesntrun{$pidfile} = 1;
2021 my $pidfile;
2027 $pidfile = $serverpidfile{$server};
2030 if ($doesntrun{$pidfile}) {
2034 my $pid = processexists($pidfile);
2038 unlink($pidfile) if(-f $pidfile);
2046 $flags .= "--pidfile \"$pidfile\" ";
2053 my ($sshpid, $pid2) = startnew($cmd, $pidfile, 60, 0);
2063 $doesntrun{$pidfile} = 1;
2076 $doesntrun{$pidfile} = 1;
2096 $doesntrun{$pidfile} = 1;
2119 my $pidfile;
2125 $pidfile = $serverpidfile{$server};
2128 if ($doesntrun{$pidfile}) {
2132 my $pid = processexists($pidfile);
2136 unlink($pidfile) if(-f $pidfile);
2145 $doesntrun{$pidfile} = 1;
2153 $doesntrun{$pidfile} = 1;
2163 $doesntrun{$pidfile} = 1;
2172 $doesntrun{$pidfile} = 1;
2182 $doesntrun{$pidfile} = 1;
2191 $doesntrun{$pidfile} = 1;
2206 $doesntrun{$pidfile} = 1;
2214 my ($sshpid, $pid2) = startnew($cmd, $pidfile, 30, 1); # fake pidfile
2224 $doesntrun{$pidfile} = 1;
2234 $doesntrun{$pidfile} = 1;
2257 my $pidfile;
2267 $pidfile = $serverpidfile{$server};
2270 if ($doesntrun{$pidfile}) {
2274 my $pid = processexists($pidfile);
2278 unlink($pidfile) if(-f $pidfile);
2285 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2290 my ($dictpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2297 $doesntrun{$pidfile} = 1;
2308 $doesntrun{$pidfile} = 1;
2333 my $pidfile;
2343 $pidfile = $serverpidfile{$server};
2346 if ($doesntrun{$pidfile}) {
2350 my $pid = processexists($pidfile);
2354 unlink($pidfile) if(-f $pidfile);
2361 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2366 my ($smbpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2373 $doesntrun{$pidfile} = 1;
2384 $doesntrun{$pidfile} = 1;
2409 my $pidfile;
2419 $pidfile = $serverpidfile{$server};
2422 if ($doesntrun{$pidfile}) {
2426 my $pid = processexists($pidfile);
2430 unlink($pidfile) if(-f $pidfile);
2437 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
2442 my ($ntelpid, $pid2) = startnew($cmd, $pidfile, 15, 0);
2449 $doesntrun{$pidfile} = 1;
2460 $doesntrun{$pidfile} = 1;
4120 my $pidfile = $serverpidfile{$server};
4121 my $pid = processexists($pidfile);
4126 unlink($pidfile) if(-f $pidfile);
4641 my $pidfile = $serverpidfile{$server};
4642 my $pid = processexists($pidfile);
4647 unlink($pidfile) if(-f $pidfile);