Lines Matching refs:pidfile
90 # pidfromfile returns the pid stored in the given pidfile. The value
96 my $pidfile = $_[0];
99 if(-f $pidfile && -s $pidfile && open(my $pidfh, "<", "$pidfile")) {
215 # pidfile exists and is alive. This will return 0 on any file related
223 my $pidfile = $_[0];
225 # fetch pid from pidfile
226 my $pid = pidfromfile($pidfile);
234 # get rid of the certainly invalid pidfile
235 unlink($pidfile) if($pid == pidfromfile($pidfile));
344 my $pidfile;
355 $pidfile = mainsockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
356 $pid = processexists($pidfile);
363 unlink($pidfile) if(-f $pidfile);
369 $pidfile = datasockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
370 $pid = processexists($pidfile);
377 unlink($pidfile) if(-f $pidfile);