| /freebsd/contrib/unbound/contrib/ |
| H A D | validation-reporter.sh | 12 pidfile="/var/run/validation-reporter.pid" 29 trap "rm -f \"$pidfile\"" EXIT 42 echo $! > "$pidfile" 47 if test -s "$pidfile"; then 48 kill `cat "$pidfile"` 50 if kill -0 `cat "$pidfile"` >/dev/null 2>&1; then 52 while kill -0 `cat "$pidfile"` >/dev/null 2>&1; do 53 kill `cat "$pidfile"` >/dev/null 2>&1 62 if test -s "$pidfile"; then 63 if kill -0 `cat "$pidfile"`; then [all …]
|
| H A D | unbound.init_fedora | 27 pidfile="/var/run/unbound/unbound.pid" 58 killproc -p $pidfile unbound 61 [ $retval -eq 0 ] && rm -f $pidfile 77 kill -HUP `cat $pidfile` 86 status -p $pidfile unbound 90 rh_status -p $pidfile >/dev/null 2>&1
|
| H A D | unbound.init | 27 pidfile="/var/unbound/unbound.pid" 74 killproc -p $pidfile $prog 78 [ $retval -eq 0 ] && rm -f $pidfile 94 kill -HUP `cat $pidfile` 103 status -p $pidfile $prog 107 rh_status -p $pidfile >/dev/null 2>&1
|
| H A D | unbound.init_yocto | 27 pidfile="/var/unbound/unbound.pid" 78 [ $retval -eq 0 ] && rm -f $pidfile 94 kill -HUP `cat $pidfile` 107 rh_status -p $pidfile >/dev/null 2>&1
|
| /freebsd/lib/libutil++/ |
| H A D | libutil++.hh | 159 class pidfile { class 161 pidfile() = default; 162 pidfile(struct pidfh *_pfh) : pfh(_pfh) {} in pidfile() function in freebsd::pidfile 163 pidfile(pidfile &&other) : pfh(other.release()) {} in pidfile() function in freebsd::pidfile 164 pidfile(pidfile const &) = delete; 166 ~pidfile() { reset(); } in ~pidfile() 201 pidfile &operator=(pidfile &&other) noexcept in operator =() 209 pidfile &operator=(pidfile const &) = delete; 211 pidfile &operator=(struct pidfh *newpfh) in operator =()
|
| /freebsd/bin/pkill/tests/ |
| H A D | pgrep-_lf_test.sh | 8 pidfile=$(pwd)/pidfile.txt 11 daemon -p $pidfile $sleep 5 13 chpid=`cat $pidfile` 14 pid=`pgrep -f -L -F $pidfile $sleep` 26 echo $chpid > $pidfile 27 pgrep -f -L -F $pidfile $sleep 2>/dev/null 39 rm -f $pidfile
|
| H A D | pkill-_lf_test.sh | 8 pidfile=$(pwd)/pidfile.txt 11 daemon -p $pidfile $sleep 5 13 pkill -f -L -F $pidfile $sleep 28 echo $chpid > $pidfile 29 pkill -f -L -F $pidfile $sleep 2>/dev/null 41 rm -f $pidfile
|
| H A D | pkill-_f_test.sh | 8 pidfile=$(pwd)/pidfile.txt 13 echo $! > $pidfile 14 pkill -f -F $pidfile $sleep 25 rm -f $pidfile
|
| H A D | pgrep-_f_test.sh | 8 pidfile=$(pwd)/pidfile.txt 14 echo $chpid > $pidfile 15 pid=`pgrep -f -F $pidfile $sleep` 22 rm -f $pidfile
|
| /freebsd/contrib/unbound/daemon/ |
| H A D | unbound.c | 371 writepid (const char* pidfile, pid_t pid) in writepid() argument 378 if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC in writepid() 384 pidfile, strerror(errno)); in writepid() 393 pidfile, strerror(errno)); in writepid() 398 "write returns 0 bytes written", pidfile); in writepid() 414 checkoldpid(char* pidfile, int inchroot) in checkoldpid() argument 417 if((old = readpid(pidfile)) != -1) { in checkoldpid() 522 strncmp(cfg->pidfile, cfg->chrootdir, in perform_setup() 526 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup() 528 if(cfg->pidfile[0] == '/') in perform_setup() [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libutil/ |
| H A D | t_pidfile.c | 149 if (pidfile(NULL) == -1) in helper_default_path() 176 if (pidfile("custom-basename") == -1) in helper_custom_basename() 203 if (pidfile(path) == -1) in helper_custom_path() 228 if (pidfile(NULL) == -1) in helper_change_basenames() 232 if (pidfile(NULL) == -1) in helper_change_basenames() 238 if (pidfile("custom-basename") == -1) in helper_change_basenames() 243 if (pidfile("custom-basename") == -1) in helper_change_basenames() 279 if (pidfile("./var/run/first.pid") == -1) in helper_change_paths() 284 if (pidfile("./second.pid") == -1) in helper_change_paths() 314 if (pidfile(NULL) == -1) in helper_mix() [all …]
|
| /freebsd/libexec/rc/rc.d/ |
| H A D | pflog | 15 pidfile="/var/run/pflogd.pid" 45 pidfile=$(echo $pidfile | sed -e 's|/var/run/||' -e 's|.pid$||') 48 rc_flags="-p $pidfile -f $pflog_logfile -i $pflog_dev $rc_flags" 62 rm $pidfile 96 pidfile="/var/run/pflogd.$2.pid"
|
| H A D | hostapd | 19 pidfile="/var/run/${name}.pid" 23 pidfile="/var/run/${name}-${ifn}.pid" 26 command_args="-P ${pidfile} -B ${conf_file}"
|
| H A D | local_unbound | 24 pidfile="/var/run/${name}.pid" 36 : ${local_unbound_pidfile:=${pidfile}} 37 pidfile=${local_unbound_pidfile}
|
| H A D | moused | 17 pidfile="${pidprefix}.pid" 34 pidfile="${pidprefix}.${ms}.pid" 35 pidarg="-I $pidfile"
|
| /freebsd/contrib/pam-krb5/tests/tap/ |
| H A D | process.c | 76 char *pidfile; /* PID file to delete on process stop */ member 251 free(process->pidfile); in process_free() 339 unlink(process->pidfile); in process_stop() 403 process_start_internal(const char *const argv[], const char *pidfile, in process_start_internal() argument 420 process->pidfile = bstrdup(pidfile); in process_start_internal() 468 for (i = 0; i < PROCESS_WAIT * 10 && access(pidfile, F_OK) != 0; i++) { in process_start_internal() 478 if (access(pidfile, F_OK) != 0) { in process_start_internal() 492 process->pid = read_pidfile(pidfile); in process_start_internal() 517 process_start(const char *const argv[], const char *pidfile) in process_start() argument 519 return process_start_internal(argv, pidfile, false); in process_start() [all …]
|
| /freebsd/usr.sbin/ipfwpcap/ |
| H A D | ipfwpcap.c | 63 static char pidfile[MAXPATHLEN]; variable 71 (void) unlink(pidfile); in quit() 85 if (pidfile[0] == '\0') { in okay() 89 snprintf(pidfile, sizeof pidfile, in okay() 93 fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0644); in okay() 95 perror(pidfile); in okay() 107 perror(pidfile); in okay() 182 strcpy(pidfile, optarg); in main()
|
| /freebsd/lib/libutil/ |
| H A D | Makefile | 20 pidfile.c property.c pty.c pw_scan.c pw_util.c quotafile.c \ 99 MAN+= pidfile.3 100 MLINKS+=pidfile.3 pidfile_close.3 101 MLINKS+=pidfile.3 pidfile_fileno.3 102 MLINKS+=pidfile.3 pidfile_open.3 103 MLINKS+=pidfile.3 pidfile_remove.3 104 MLINKS+=pidfile.3 pidfile_signal.3 105 MLINKS+=pidfile.3 pidfile_write.3
|
| /freebsd/bin/pkill/ |
| H A D | pkill.c | 133 char *buf, *mstr, **pargv, *p, *q, *pidfile; in main() local 182 pidfile = NULL; in main() 194 pidfile = optarg; in main() 301 if (pidfile != NULL) in main() 302 pidfromfile = takepid(pidfile, pidfilelock); in main() 832 takepid(const char *pidfile, int pidfilelock) in takepid() argument 838 fh = fopen(pidfile, "r"); in takepid() 840 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); in takepid() 849 errx(STATUS_ERROR, "File '%s' can be locked", pidfile); in takepid() 853 "Error while locking file '%s'", pidfile); in takepid() [all …]
|
| /freebsd/contrib/kyua/engine/ |
| H A D | plain_helpers.cpp | 150 std::ofstream pidfile(name.c_str()); in test_spawn_blocking_child() local 151 if (!pidfile) in test_spawn_blocking_child() 153 pidfile << pid; in test_spawn_blocking_child() 154 pidfile.close(); in test_spawn_blocking_child()
|
| /freebsd/contrib/ofed/infiniband-diags/src/ |
| H A D | rdma-ndd.c | 71 char *pidfile = NULL; variable 210 pidfile = optarg; in process_opts() 361 if (pidfile) in remove_pidfile() 362 unlink(pidfile); in remove_pidfile() 368 if (pidfile) { in write_pidfile() 370 f = fopen(pidfile, "w"); in write_pidfile() 376 pidfile); in write_pidfile()
|
| /freebsd/libexec/rc/tests/ |
| H A D | rc_subr_test.sh | 62 pidfile="$2" 67 command_args="-P $pidfile -p $_childpidfile -- /bin/sleep 60" 102 pidfile="$2" 107 command_args="-p $pidfile -- $procname 60"
|
| /freebsd/usr.sbin/route6d/misc/ |
| H A D | chkrt | 5 $pidfile="/var/run/route6d.pid"; 9 open(FD, "< $pidfile") || die "Can not open $pidfile";
|
| /freebsd/contrib/hyperv/tools/scripts/ |
| H A D | hyperv_vfup | 63 pidfile=/var/run/dhclient.$hn.pid 64 if [ -f $pidfile ] 66 kill -TERM `cat $pidfile`
|
| /freebsd/usr.sbin/unbound/setup/ |
| H A D | local-unbound-setup.sh | 47 pidfile="" 88 : ${pidfile:=/var/run/local_unbound.pid} 200 echo "unbound_pid=\"${pidfile}\"" 259 echo " pidfile: ${pidfile}" 375 pidfile="$OPTARG"
|