Lines Matching refs:pidfile

412     my ($cmd, $pidfile, $timeout, $fake)=@_;
438 if(open(OUT, ">$pidfile")) {
441 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
444 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
456 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
710 my $pidfile = $serverpidfile{$server};
711 my $pid = processexists($pidfile);
716 unlink($pidfile) if(-f $pidfile);
948 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
950 if(open(FILE, "<$pidfile")) {
960 unlink($pidfile);
1013 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1064 if($data && ($data =~ /(GNUTLS|GnuTLS)/) && open(FILE, "<$pidfile")) {
1073 unlink($pidfile);
1097 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1099 if(open(FILE, "<$pidfile")) {
1109 unlink($pidfile);
1198 my $pidfile;
1226 $pidfile = $serverpidfile{$server};
1229 if ($doesntrun{$pidfile}) {
1233 my $pid = processexists($pidfile);
1237 unlink($pidfile) if(-f $pidfile);
1246 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1256 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1263 $doesntrun{$pidfile} = 1;
1274 $doesntrun{$pidfile} = 1;
1298 my $pidfile;
1308 $pidfile = $serverpidfile{$server};
1311 if ($doesntrun{$pidfile}) {
1315 my $pid = processexists($pidfile);
1319 unlink($pidfile) if(-f $pidfile);
1326 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1331 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1338 $doesntrun{$pidfile} = 1;
1349 $doesntrun{$pidfile} = 1;
1374 my $pidfile;
1384 $pidfile = $serverpidfile{$server};
1387 if ($doesntrun{$pidfile}) {
1391 my $pid = processexists($pidfile);
1395 unlink($pidfile) if(-f $pidfile);
1404 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1412 my ($httpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1419 $doesntrun{$pidfile} = 1;
1430 $doesntrun{$pidfile} = 1;
1458 my $pidfile;
1468 $pidfile = $serverpidfile{$server};
1471 if ($doesntrun{$pidfile}) {
1475 my $pid = processexists($pidfile);
1479 unlink($pidfile) if(-f $pidfile);
1493 my ($httptlspid, $pid2) = startnew($cmd, $pidfile, 10, 1); # fake pidfile
1500 $doesntrun{$pidfile} = 1;
1511 $doesntrun{$pidfile} = 1;
1536 my $pidfile;
1564 $pidfile = $serverpidfile{$server};
1567 if ($doesntrun{$pidfile}) {
1571 my $pid = processexists($pidfile);
1575 unlink($pidfile) if(-f $pidfile);
1582 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1588 my ($ftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1595 $doesntrun{$pidfile} = 1;
1606 $doesntrun{$pidfile} = 1;
1632 my $pidfile;
1642 $pidfile = $serverpidfile{$server};
1645 if ($doesntrun{$pidfile}) {
1649 my $pid = processexists($pidfile);
1653 unlink($pidfile) if(-f $pidfile);
1662 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1670 my ($ftpspid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1677 $doesntrun{$pidfile} = 1;
1688 $doesntrun{$pidfile} = 1;
1716 my $pidfile;
1729 $pidfile = $serverpidfile{$server};
1732 if ($doesntrun{$pidfile}) {
1736 my $pid = processexists($pidfile);
1740 unlink($pidfile) if(-f $pidfile);
1747 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1752 my ($tftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1759 $doesntrun{$pidfile} = 1;
1770 $doesntrun{$pidfile} = 1;
1797 my $pidfile;
1810 $pidfile = $serverpidfile{$server};
1813 if ($doesntrun{$pidfile}) {
1817 my $pid = processexists($pidfile);
1821 unlink($pidfile) if(-f $pidfile);
1828 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
1833 my ($rtsppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1840 $doesntrun{$pidfile} = 1;
1851 $doesntrun{$pidfile} = 1;
1879 my $pidfile;
1885 $pidfile = $serverpidfile{$server};
1888 if ($doesntrun{$pidfile}) {
1892 my $pid = processexists($pidfile);
1896 unlink($pidfile) if(-f $pidfile);
1904 $flags .= "--pidfile \"$pidfile\" ";
1911 my ($sshpid, $pid2) = startnew($cmd, $pidfile, 60, 0);
1921 $doesntrun{$pidfile} = 1;
1934 $doesntrun{$pidfile} = 1;
1954 $doesntrun{$pidfile} = 1;
1977 my $pidfile;
1983 $pidfile = $serverpidfile{$server};
1986 if ($doesntrun{$pidfile}) {
1990 my $pid = processexists($pidfile);
1994 unlink($pidfile) if(-f $pidfile);
2003 $doesntrun{$pidfile} = 1;
2011 $doesntrun{$pidfile} = 1;
2021 $doesntrun{$pidfile} = 1;
2030 $doesntrun{$pidfile} = 1;
2040 $doesntrun{$pidfile} = 1;
2049 $doesntrun{$pidfile} = 1;
2064 $doesntrun{$pidfile} = 1;
2072 my ($sshpid, $pid2) = startnew($cmd, $pidfile, 30, 1); # fake pidfile
2082 $doesntrun{$pidfile} = 1;
2092 $doesntrun{$pidfile} = 1;
3681 my $pidfile = $serverpidfile{$server};
3682 my $pid = processexists($pidfile);
3687 unlink($pidfile) if(-f $pidfile);
4130 my $pidfile = $serverpidfile{$server};
4131 my $pid = processexists($pidfile);
4136 unlink($pidfile) if(-f $pidfile);