Home
last modified time | relevance | path

Searched refs:pidfile (Results 1 – 25 of 74) sorted by relevance

123

/external/curl/tests/
Dftp.pm39 my $pidfile = $_[0];
42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
132 my $pidfile = $_[0];
135 my $pid = pidfromfile($pidfile);
144 unlink($pidfile) if($pid == pidfromfile($pidfile));
253 my $pidfile;
264 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
265 $pid = processexists($pidfile);
272 unlink($pidfile) if(-f $pidfile);
278 $pidfile = datasockf_pidfilename($proto, $ipvnum, $idnum);
[all …]
Druntests.pl417 my ($cmd, $pidfile, $timeout, $fake)=@_;
443 if(open(OUT, ">$pidfile")) {
446 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
449 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
461 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
715 my $pidfile = $serverpidfile{$server};
716 my $pid = processexists($pidfile);
721 unlink($pidfile) if(-f $pidfile);
953 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
955 if(open(FILE, "<$pidfile")) {
[all …]
Dsecureserver.pl62 my $pidfile; # stunnel pid file
158 $pidfile = "$path/". $ARGV[1];
177 if(!$pidfile) {
178 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
246 $cmd = "$stunnel -p $certfile -P $pidfile ";
254 print "pid file: $pidfile\n";
285 print STUNCONF "pid = $pidfile\n";
312 print "pid = $pidfile\n";
333 if(open(OUT, ">$pidfile")) {
Drtspserver.pl42 my $pidfile; # rtsp server pid file
53 $pidfile = $ARGV[1];
99 if(!$pidfile) {
100 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
106 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
Dtftpserver.pl42 my $pidfile; # tftp server pid file
54 $pidfile = $ARGV[1];
100 if(!$pidfile) {
101 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
107 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
Dhttpserver.pl43 my $pidfile; # http server pid file
56 $pidfile = $ARGV[1];
118 if(!$pidfile) {
119 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
125 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
Dhttp2-server.pl27 my $pidfile = "log/nghttpx.pid";
41 $pidfile = $ARGV[1];
72 "--pid-file=$pidfile ".
Dsshserver.pl92 my $pidfile; # ssh daemon pid file
148 $pidfile = "$path/". $ARGV[1];
178 if(!$pidfile) {
179 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
392 my $pidfile_config = $pidfile;
Dftpserver.pl94 my $pidfile; # server pid file name
190 unlink($pidfile);
389 unlink($pidfile);
403 unlink($pidfile);
430 unlink($pidfile);
2896 $pidfile = $ARGV[1];
2946 if(!$pidfile) {
2947 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
2978 open(PID, ">$pidfile");
2982 logmsg("logged pid $$ in $pidfile\n");
[all …]
/external/v8/tools/testrunner/server/
Ddaemon.py25 def __init__(self, pidfile, stdin='/dev/null', argument
30 self.pidfile = pidfile
76 file(self.pidfile, 'w+').write("%s\n" % pid)
79 os.remove(self.pidfile)
87 pf = file(self.pidfile, 'r')
95 sys.stderr.write(message % self.pidfile)
108 pf = file(self.pidfile, 'r')
116 sys.stderr.write(message % self.pidfile)
130 if os.path.exists(self.pidfile):
131 os.remove(self.pidfile)
/external/autotest/utils/
Dservice_helper.py6 def stop_service(pidfile): argument
14 pidfh = open(pidfile)
19 def start_service(cmd, pidfile, logfile=os.devnull, chdir=None): argument
29 pidfh = open(pidfile, 'w')
119 if not options.pidfile:
126 start_service(args, options.pidfile, options.logfile, options.chdir)
128 stop_service(options.pidfile)
/external/selinux/restorecond/
Drestorecond.c87 static const char *pidfile = "/var/run/restorecond.pid"; variable
97 pidfile = 0; in write_pid_file()
100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644); in write_pid_file()
103 pidfile = 0; in write_pid_file()
218 if (pidfile) in main()
219 unlink(pidfile); in main()
/external/curl/tests/server/
Dutil.c252 FILE *pidfile; in write_pidfile() local
256 pidfile = fopen(filename, "wb"); in write_pidfile()
257 if(!pidfile) { in write_pidfile()
261 fprintf(pidfile, "%ld\n", pid); in write_pidfile()
262 fclose(pidfile); in write_pidfile()
/external/ltp/tools/pounder21/
Drun.c48 static char *pidfile = ""; variable
79 unlink(pidfile); in jump_out()
119 pidfile = getenv("POUNDER_PIDFILE"); in record_pid()
120 if (pidfile == NULL) { in record_pid()
121 pidfile = "pounder.pid"; in record_pid()
124 fp = fopen(pidfile, "w"); in record_pid()
126 perror(pidfile); in record_pid()
208 unlink(pidfile); in main()
/external/openssh/regress/
Dcfgmatch.sh6 pidfile=$OBJ/remote_pid
15 rm -f $pidfile
/external/syslinux/gpxe/src/util/
Dhijack.c534 char pidfile[16 + IF_NAMESIZE + 4]; /* "/var/run/hijack-<intf>.pid" */ in daemonise() local
548 snprintf ( pidfile, sizeof ( pidfile ), "/var/run/hijack-%s.pid", in daemonise()
550 fd = open ( pidfile, ( O_WRONLY | O_CREAT | O_TRUNC ), in daemonise()
554 pidfile, strerror ( errno ) ); in daemonise()
562 pidfile, strerror ( errno ) ); in daemonise()
/external/toybox/toys/pending/
Ddhcp6.c46 char *interface_name, *pidfile, *script;
410 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
412 if (pidfile > 0) { in write_pid()
416 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
417 close(pidfile); in write_pid()
483 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in lease_fail()
551 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
561 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main()
674 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
/external/dhcpcd-6.8.2/
Ddhcpcd.c93 read_pid(const char *pidfile) in read_pid() argument
98 if ((fp = fopen(pidfile, "r")) == NULL) { in read_pid()
1634 snprintf(ctx.pidfile, sizeof(ctx.pidfile), in main()
1637 snprintf(ctx.pidfile, sizeof(ctx.pidfile), in main()
1675 strlcpy(ctx.pidfile, argv[optind], sizeof(ctx.pidfile)); in main()
1679 if (ctx.pidfile[strlen(ctx.pidfile) - 1] == '6') in main()
1739 pid = read_pid(ctx.pidfile); in main()
1750 unlink(ctx.pidfile); in main()
1765 if (read_pid(ctx.pidfile) == 0) in main()
1774 if ((pid = read_pid(ctx.pidfile)) > 0 && in main()
[all …]
/external/lz4/tests/
Dtest-lz4-speed.py308 pidfile = "./speedTest.pid" variable
309 if os.path.isfile(pidfile):
310 log("ERROR: %s already exists, exiting" % pidfile)
314 with open(pidfile, 'w') as the_file:
349 os.unlink(pidfile)
/external/autotest/client/site_tests/security_Minijail0/src/
Dtest-pid-file9 read pid < pidfile
/external/toybox/lib/
Dxwrap.c711 char pidfile[256], spid[32]; in xpidfile() local
715 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile()
718 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile()
722 fd = open(pidfile, O_RDONLY); in xpidfile()
729 if (pid < 1 || (kill(pid, 0) && errno == ESRCH)) unlink(pidfile); in xpidfile()
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dudhcpd-p2p.conf63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
/external/fio/
Dserver.c2463 static int check_existing_pidfile(const char *pidfile) in check_existing_pidfile() argument
2470 if (stat(pidfile, &sb)) in check_existing_pidfile()
2473 f = fopen(pidfile, "r"); in check_existing_pidfile()
2490 static int write_pid(pid_t pid, const char *pidfile) in write_pid() argument
2494 fpid = fopen(pidfile, "w"); in write_pid()
2496 log_err("fio: failed opening pid file %s\n", pidfile); in write_pid()
2508 int fio_start_server(char *pidfile) in fio_start_server() argument
2518 if (!pidfile) in fio_start_server()
2521 if (check_existing_pidfile(pidfile)) { in fio_start_server()
2523 pidfile); in fio_start_server()
[all …]
/external/ppp/pppd/
Dmain.c853 FILE *pidfile; local
857 if ((pidfile = fopen(pidfilename, "w")) != NULL) {
858 fprintf(pidfile, "%d\n", pid);
859 (void) fclose(pidfile);
872 FILE *pidfile; local
879 if ((pidfile = fopen(linkpidfile, "w")) != NULL) {
880 fprintf(pidfile, "%d\n", pid);
882 fprintf(pidfile, "%s\n", ifname);
883 (void) fclose(pidfile);
/external/iputils/doc/
Dninfod.sgml18 <arg choice="opt">-p <replaceable/pidfile/</arg>
64 <term><option>-p <replaceable/pidfile/</option></term>

123