/external/autotest/client/site_tests/security_Minijail0/src/ |
test-pid-file | 6 # args: -b /bin,/bin -b /lib,/lib -b /usr/lib,/usr/lib -b /usr/local,/usr/local -C "%T/c" -f "%T/c/pidfile" 9 read pid < pidfile
|
/external/curl/tests/ |
ftp.pm | 33 # pidfromfile returns the pid stored in the given pidfile. The value 39 my $pidfile = $_[0]; 42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) { 124 # pidfile exists and is alive. This will return 0 on any file related 132 my $pidfile = $_[0]; 134 # fetch pid from pidfile 135 my $pid = pidfromfile($pidfile); 143 # get rid of the certainly invalid pidfile [all...] |
rtspserver.pl | 42 my $pidfile; # rtsp server pid file 51 if($ARGV[0] eq '--pidfile') { 53 $pidfile = $ARGV[1]; 99 if(!$pidfile) { 100 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 106 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
tftpserver.pl | 42 my $pidfile; # tftp server pid file 52 if($ARGV[0] eq '--pidfile') { 54 $pidfile = $ARGV[1]; 100 if(!$pidfile) { 101 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 107 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
httpserver.pl | 43 my $pidfile; # http server pid file 54 if($ARGV[0] eq '--pidfile') { 56 $pidfile = $ARGV[1]; 118 if(!$pidfile) { 119 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 125 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
secureserver.pl | 60 my $pidfile; # stunnel pid file 154 elsif($ARGV[0] eq '--pidfile') { 156 $pidfile = "$path/". $ARGV[1]; 175 if(!$pidfile) { 176 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 244 $cmd = "$stunnel -p $certfile -P $pidfile "; 252 print "pid file: $pidfile\n"; 283 print STUNCONF "pid = $pidfile\n"; 310 print "pid = $pidfile\n"; 330 # Fake pidfile for tstunnel on Windows [all...] |
runtests.pl | 299 my %doesntrun; # servers that don't work, identified by pidfile 362 # Load serverpidfile hash with pidfile names for all possible servers. 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")) { 461 # otherwise it is just likely to be the _previous_ pidfile o [all...] |
sshserver.pl | 91 my $pidfile; # ssh daemon pid file 145 elsif($ARGV[0] eq '--pidfile') { 147 $pidfile = "$path/". $ARGV[1]; 177 if(!$pidfile) { 178 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 391 my $pidfile_config = $pidfile; 457 # PidFile : OpenSSH 2.1.0 and later 503 push @cfgarr, "PidFile $pidfile_config"; [all...] |
/external/v8/tools/testrunner/server/ |
daemon.py | 25 def __init__(self, pidfile, stdin='/dev/null', 30 self.pidfile = pidfile 73 # write pidfile 76 file(self.pidfile, 'w+').write("%s\n" % pid) 79 os.remove(self.pidfile) 85 # Check for a pidfile to see if the daemon already runs 87 pf = file(self.pidfile, 'r') 94 message = "pidfile %s already exist. Daemon already running?\n" 95 sys.stderr.write(message % self.pidfile) [all...] |
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
udhcpd-p2p.conf | 63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
|
/external/autotest/utils/ |
service_helper.py | 6 def stop_service(pidfile): 8 Stop a service using a pidfile. 12 @param pidfile: file to read for the process id number 14 pidfh = open(pidfile) 19 def start_service(cmd, pidfile, logfile=os.devnull, chdir=None): 21 Start cmd in the background and write the pid to pidfile. 24 @param pidfile: pidfile to write the pid to 29 pidfh = open(pidfile, 'w') 105 parser.add_option('-p', '--pidfile', action='store' [all...] |
autotest.init | 34 start-stop-daemon --stop --quiet --pidfile $BASE_DIR/$PID_NAME.pid
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/test/functional/ |
test_proxies.py | 18 PidFile "%(pidfile)s" 41 self.pidfile = tempfile.mktemp() 46 'pidfile': self.pidfile, 63 pid = int(open(self.pidfile).read()) 71 map(os.unlink, (self.pidfile,
|
/external/selinux/policycoreutils/restorecond/ |
restorecond.c | 87 static const char *pidfile = "/var/run/restorecond.pid"; variable 97 pidfile = 0; 100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644); 102 syslog(LOG_ERR, "Unable to set pidfile (%s)", strerror(errno)); 103 pidfile = 0; 234 if (pidfile) 235 unlink(pidfile);
|
/external/autotest/site_utils/admin/ |
autotest.init | 41 start-stop-daemon --stop --quiet --pidfile $BASE_DIR/$PID_NAME.pid
|
/external/curl/tests/server/ |
util.c | 253 FILE *pidfile; local 257 pidfile = fopen(filename, "wb"); 258 if(!pidfile) { 262 fprintf(pidfile, "%ld\n", pid); 263 fclose(pidfile);
|
/external/avahi/initscript/fedora/ |
avahi-daemon.in | 12 # pidfile: @localstatedir@/run/avahi-daemon/pid 43 PIDFILE=@localstatedir@/run/avahi-daemon/pid 56 daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS 65 killproc -p ${PIDFILE} $AVAHI_BIN 67 [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE} 74 killproc -p ${PIDFILE} $AVAHI_BIN -HUP 96 status -p ${PIDFILE} $AVAHI_BIN
|
avahi-dnsconfd.in | 12 # pidfile: @localstatedir@/run/avahi-dnsconfd.pid 43 PIDFILE=@localstatedir@/run/avahi-dnsconfd.pid 53 daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS 62 killproc -p ${PIDFILE} $AVAHI_BIN 64 [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE} 71 killproc -p ${PIDFILE} $AVAHI_BIN -HUP 93 status -p ${PIDFILE} $AVAHI_BIN
|
/external/dbus/bus/ |
bus.c | 56 char *pidfile; member in struct:BusContext 280 const char *user, *pidfile; local 290 pidfile = NULL; 307 pidfile = bus_config_parser_get_pidfile (parser); 309 if (pidfile != NULL) 314 _dbus_string_init_const (&u, pidfile); 336 pidfile); 345 context->pidfile = _dbus_strdup (pidfile); 860 if (context->pidfile) [all...] |
/external/autotest/client/tests/kvmtest/ |
kvmtest.py | 88 for pidfile in utils.locate("*:*.pid", dirname): 89 pid = open(pidfile, 'r').readline().strip() 92 vncdisplay = os.path.basename(pidfile)\
|
/external/dhcpcd-6.8.2/ |
dhcpcd.c | 93 read_pid(const char *pidfile) 98 if ((fp = fopen(pidfile, "r")) == NULL) { [all...] |
dhcpcd.h | 87 char pidfile[sizeof(PIDFILE) + IF_NAMESIZE + 1]; member in struct:dhcpcd_ctx
|
/external/dbus/dbus/ |
dbus-sysdeps-util-unix.c | 71 * @param pidfile #NULL, or pidfile to create 78 _dbus_become_daemon (const DBusString *pidfile, 142 if (!_dbus_write_pid_to_file_and_pipe (pidfile, print_pid_pipe, 219 * Writes the given pid_to_write to a pidfile (if non-NULL) and/or to a 220 * pipe (if non-NULL). Does nothing if pidfile and print_pid_pipe are both 223 * @param pidfile the file to write to or #NULL 230 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile, 235 if (pidfile) 237 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile)); [all...] |
/external/fio/ |
server.c | [all...] |
/external/toybox/toys/pending/ |
dhcp6.c | 12 usage: dhcp6 [-fbnqvR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE] 17 -p Create pidfile 46 char *interface_name, *pidfile, *script; 410 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); local 412 if (pidfile > 0) { 416 write(pidfile, pidbuf, strlen(pidbuf)); 417 close(pidfile); 483 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); 551 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); 561 dbg("pid file: %s\n", TT.pidfile); [all...] |