Home
last modified time | relevance | path

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

12

/third_party/curl/tests/
Dservers.pm351 my ($cmd, $pidfile, $timeout, $fakepidfile)=@_;
379 if(open(my $out, ">", "$pidfile")) {
382 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
385 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
398 $pid2 = pidfromfile($pidfile);
495 my $pidfile = $serverpidfile{$server};
496 my $pid = processexists($pidfile);
508 unlink($pidfile) if(-f $pidfile);
757 my $pidfile = server_pidfilename("$LOGDIR/$PIDDIR", $proto, $ipvnum,
759 my $pid = processexists($pidfile);
[all …]
Dprocesshelp.pm96 my $pidfile = $_[0];
99 if(-f $pidfile && -s $pidfile && open(my $pidfh, "<", "$pidfile")) {
223 my $pidfile = $_[0];
226 my $pid = pidfromfile($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);
[all …]
Dsecureserver.pl66 my $pidfile; # stunnel pid file
158 $pidfile = "$path/". $ARGV[1];
183 if($pidfile) {
185 $piddir = dirname($pidfile);
190 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
258 $cmd = "\"$stunnel\" -p $certfile -P $pidfile ";
266 print "pid file: $pidfile\n";
302 print $stunconf "pid = $pidfile\n";
329 print "pid = $pidfile\n";
351 if(open(my $out, ">", "$pidfile")) {
Dhttp-server.pl51 my $pidfile; # pid file
68 $pidfile = $ARGV[1];
155 if($pidfile) {
157 $piddir = dirname($pidfile);
162 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
174 $flags .= "--pidfile \"$pidfile\" ".
Dtftpserver.pl48 my $pidfile;
61 $pidfile = $ARGV[1];
119 if(!$pidfile) {
120 $pidfile = server_pidfilename($path, $proto, $ipvnum, $idnum);
126 $flags .= "--pidfile \"$pidfile\" ".
Drtspserver.pl48 my $pidfile; # rtsp server pid file
60 $pidfile = $ARGV[1];
119 if(!$pidfile) {
120 $pidfile = server_pidfilename($path, $proto, $ipvnum, $idnum);
129 $flags .= "--pidfile \"$pidfile\" ".
Ddictserver.py57 if options.pidfile:
62 with open(options.pidfile, "w") as f:
193 if options.pidfile and os.path.isfile(options.pidfile):
194 os.unlink(options.pidfile)
Dhttp2-server.pl33 my $pidfile = "$logdir/nghttpx.pid";
51 $pidfile = $ARGV[1];
114 "--pid-file=$pidfile ".
Dhttp3-server.pl34 my $pidfile = "$logdir/nghttpx.pid";
51 $pidfile = $ARGV[1];
114 "--pid-file=$pidfile ".
Dsshserver.pl103 my $pidfile; # ssh daemon pid file
167 $pidfile = "$path/". $ARGV[1];
198 if($pidfile) {
200 $piddir = dirname($pidfile);
205 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
450 $pidfile_config = pathhelp::sys_native_abs_path($pidfile);
463 $pidfile_config = $pidfile;
1156 if(open(my $out, ">", "$pidfile")) {
Dnegtelnetserver.py58 if options.pidfile:
63 with open(options.pidfile, "w") as f:
377 if options.pidfile and os.path.isfile(options.pidfile):
378 os.unlink(options.pidfile)
Dsmbserver.py111 if options.pidfile:
116 with open(options.pidfile, "w") as f:
450 if options.pidfile and os.path.isfile(options.pidfile):
451 os.unlink(options.pidfile)
Dftpserver.pl113 my $pidfile; # server pid file name
210 unlink($pidfile);
385 unlink($pidfile);
400 unlink($pidfile);
430 unlink($pidfile);
3015 $pidfile = $ARGV[1];
3074 if($pidfile) {
3076 $piddir = dirname($pidfile);
3081 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
3126 open(my $pid, ">", "$pidfile");
[all …]
/third_party/alsa-utils/alsactl/
Ddaemon.c274 static long read_pid_file(const char *pidfile) in read_pid_file() argument
279 fd = open(pidfile, O_RDONLY); in read_pid_file()
292 static int write_pid_file(const char *pidfile) in write_pid_file() argument
298 fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0600); in write_pid_file()
303 unlink(pidfile); in write_pid_file()
314 int state_daemon_kill(const char *pidfile, const char *cmd) in state_daemon_kill() argument
333 pid = read_pid_file(pidfile); in state_daemon_kill()
342 static int check_another_instance(const char *pidfile) in check_another_instance() argument
346 pid = read_pid_file(pidfile); in check_another_instance()
351 pid = read_pid_file(pidfile); in check_another_instance()
[all …]
Dalsactl.c240 char *pidfile = SYS_PIDFILE; in main() local
357 pidfile = optarg; in main()
452 res = state_daemon(cfgfile, cardname, period, pidfile); in main()
455 res = state_daemon_kill(pidfile, "rescan"); in main()
458 res = state_daemon(cfgfile, cardname, period, pidfile); in main()
460 res = state_daemon_kill(pidfile, cardname); in main()
Dalsactl.h61 const char *pidfile);
62 int state_daemon_kill(const char *pidfile, const char *cmd);
/third_party/nghttp2/contrib/
Dnghttpx-init.in49 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
51 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
69 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
/third_party/toybox/toys/pending/
Ddhcp6.c46 char *interface_name, *pidfile, *script;
407 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
409 if (pidfile > 0) { in write_pid()
413 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
414 close(pidfile); in write_pid()
480 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in lease_fail()
548 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
558 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main()
668 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
Ddhcp.c61 char *pidfile;
349 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
350 if (pidfile > 0) { in write_pid()
354 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
355 close(pidfile); in write_pid()
1282 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
1360 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
1498 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
/third_party/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)
/third_party/curl/tests/server/
Dutil.c309 FILE *pidfile; in write_pidfile() local
313 pidfile = fopen(filename, "wb"); in write_pidfile()
314 if(!pidfile) { in write_pidfile()
318 fprintf(pidfile, "%" CURL_FORMAT_CURL_OFF_T "\n", pid); in write_pidfile()
319 fclose(pidfile); in write_pidfile()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/
Dudhcpd-p2p.conf63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
Dudhcpd-p2p.conf63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
/third_party/toybox/lib/
Dxwrap.c784 char pidfile[256], spid[32]; in xpidfile() local
788 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile()
791 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile()
795 fd = open(pidfile, O_RDONLY); in xpidfile()
802 if (pid < 1 || (kill(pid, 0) && errno == ESRCH)) unlink(pidfile); in xpidfile()
/third_party/ltp/testcases/kernel/mce-test/kvm/host/
Dhost_run.sh247 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
259 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &

12