Home
last modified time | relevance | path

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

123456

/freebsd-14.2/contrib/unbound/contrib/
H A Dvalidation-reporter.sh12 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
53 kill `cat "$pidfile"` >/dev/null 2>&1
62 if test -s "$pidfile"; then
63 if kill -0 `cat "$pidfile"`; then
77 echo "reporter ("`cat "$pidfile"`") is running"
[all …]
H A Dunbound.init_fedora27 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 Dunbound.init27 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 Dunbound.init_yocto27 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-14.2/bin/pkill/tests/
H A Dpgrep-_lf_test.sh8 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 Dpkill-_lf_test.sh8 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 Dpkill-_f_test.sh8 pidfile=$(pwd)/pidfile.txt
13 echo $! > $pidfile
14 pkill -f -F $pidfile $sleep
25 rm -f $pidfile
H A Dpgrep-_f_test.sh8 pidfile=$(pwd)/pidfile.txt
14 echo $chpid > $pidfile
15 pid=`pgrep -f -F $pidfile $sleep`
22 rm -f $pidfile
/freebsd-14.2/contrib/unbound/daemon/
H A Dunbound.c384 pidfile, strerror(errno)); in writepid()
542 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup()
544 if(cfg->pidfile[0] == '/') in perform_setup()
545 daemon->pidfile = strdup(cfg->pidfile); in perform_setup()
546 else daemon->pidfile = fname_after_chroot(cfg->pidfile, in perform_setup()
548 if(!daemon->pidfile) in perform_setup()
569 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup()
614 if(daemon->pidfile && daemon->pidfile[0] && in perform_setup()
620 if(!daemon->pidfile) in perform_setup()
745 if(daemon->pidfile) { in run_daemon()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libutil/
H A Dt_pidfile.c149 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()
284 if (pidfile("./second.pid") == -1) in helper_change_paths()
314 if (pidfile(NULL) == -1) in helper_mix()
318 if (pidfile("./second.pid") == -1) in helper_mix()
[all …]
/freebsd-14.2/libexec/rc/rc.d/
H A Dpflog15 pidfile="/var/run/pflogd.pid"
42 pidfile=$(echo $pidfile | sed -e 's|/var/run/||' -e 's|.pid$||')
45 rc_flags="-p $pidfile -f $pflog_logfile -i $pflog_dev $rc_flags"
59 rm $pidfile
90 pidfile="/var/run/pflogd.$2.pid"
H A Dhostapd28 pidfile="/var/run/${name}.pid"
32 pidfile="/var/run/${name}-${ifn}.pid"
35 command_args="-P ${pidfile} -B ${conf_file}"
H A Dmoused17 pidfile="${pidprefix}.pid"
27 pidfile="${pidprefix}.$2.pid"
28 pidarg="-I $pidfile"
H A Dlocal_unbound24 pidfile="/var/run/${name}.pid"
36 : ${local_unbound_pidfile:=${pidfile}}
37 pidfile=${local_unbound_pidfile}
H A Dbsnmpd17 pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
18 command_args="-p ${pidfile}"
/freebsd-14.2/usr.sbin/ipfwpcap/
H A Dipfwpcap.c67 static char pidfile[MAXPATHLEN]; variable
75 (void) unlink(pidfile); in quit()
89 if (pidfile[0] == '\0') { in okay()
93 snprintf(pidfile, sizeof pidfile, in okay()
97 fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0644); in okay()
99 perror(pidfile); in okay()
111 perror(pidfile); in okay()
186 strcpy(pidfile, optarg); in main()
/freebsd-14.2/lib/libutil/
H A DMakefile21 pidfile.c property.c pty.c pw_scan.c pw_util.c quotafile.c \
37 login_class.3 login_ok.3 login_times.3 login_tty.3 pidfile.3 \
59 MLINKS+=pidfile.3 pidfile_close.3 \
60 pidfile.3 pidfile_fileno.3 \
61 pidfile.3 pidfile_open.3 \
62 pidfile.3 pidfile_remove.3 \
63 pidfile.3 pidfile_write.3
/freebsd-14.2/bin/pkill/
H A Dpkill.c134 char *buf, *mstr, **pargv, *p, *q, *pidfile; in main() local
183 pidfile = NULL; in main()
195 pidfile = optarg; in main()
302 if (pidfile != NULL) in main()
303 pidfromfile = takepid(pidfile, pidfilelock); in main()
833 takepid(const char *pidfile, int pidfilelock) in takepid() argument
839 fh = fopen(pidfile, "r"); in takepid()
841 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); in takepid()
850 errx(STATUS_ERROR, "File '%s' can be locked", pidfile); in takepid()
854 "Error while locking file '%s'", pidfile); in takepid()
[all …]
/freebsd-14.2/libexec/rc/tests/
H A Drc_subr_test.sh50 pidfile="$2"
55 command_args="-P $pidfile -p $_childpidfile -- /bin/sleep 5"
90 pidfile="$2"
95 command_args="-p $pidfile -- $procname 5"
/freebsd-14.2/contrib/kyua/engine/
H A Dplain_helpers.cpp150 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-14.2/contrib/ofed/infiniband-diags/src/
H A Drdma-ndd.c71 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-14.2/usr.sbin/route6d/misc/
H A Dchkrt5 $pidfile="/var/run/route6d.pid";
9 open(FD, "< $pidfile") || die "Can not open $pidfile";
/freebsd-14.2/contrib/hyperv/tools/scripts/
H A Dhyperv_vfup63 pidfile=/var/run/dhclient.$hn.pid
64 if [ -f $pidfile ]
66 kill -TERM `cat $pidfile`
/freebsd-14.2/usr.sbin/unbound/setup/
H A Dlocal-unbound-setup.sh47 pidfile=""
88 : ${pidfile:=/var/run/local_unbound.pid}
200 echo "unbound_pid=\"${pidfile}\""
259 echo " pidfile: ${pidfile}"
374 pidfile="$OPTARG"
/freebsd-14.2/usr.sbin/bluetooth/btpand/
H A Dtap.c59 char pidfile[PATH_MAX]; in tap_init() local
120 snprintf(pidfile, sizeof(pidfile), "%s/%s.pid", in tap_init()
122 chan->pfh = pidfile_open(pidfile, 0600, NULL); in tap_init()

123456