| /netbsd-src/external/bsd/unbound/dist/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 76 kill -HUP `cat $pidfile` 85 status -p $pidfile unbound 89 rh_status -p $pidfile >/dev/null 2>&1
|
| H A D | unbound.init | 27 pidfile="/var/unbound/unbound.pid" 74 killproc -p $pidfile $prog 93 kill -HUP `cat $pidfile` 102 status -p $pidfile $prog 106 rh_status -p $pidfile >/dev/null 2>&1
|
| H A D | unbound.init_yocto | 27 pidfile="/var/unbound/unbound.pid" 93 kill -HUP `cat $pidfile` 106 rh_status -p $pidfile >/dev/null 2>&1
|
| /netbsd-src/external/bsd/nsd/dist/contrib/ |
| H A D | nsd.init | 83 pidfile=`${nsd_checkconf} -o pidfile ${configfile}` 93 if echo "${pidfile}" | grep "^[^/]" >/dev/null; then 94 pidfile=${zonesdir}/${pidfile} 109 if [ -s ${pidfile} ] 111 kill -"$1" `cat ${pidfile}` && return 0 163 if [ -s ${pidfile} ]; then 164 pid=`cat ${pidfile}` 182 if test -s ${pidfile} && kill -"0" `cat ${pidfile}` 184 (echo "process `cat ${pidfile}` exists, please use restart"; exit 1)
|
| /netbsd-src/external/bsd/unbound/dist/daemon/ |
| H A D | unbound.c | 372 writepid (const char* pidfile, pid_t pid) in writepid() argument 379 if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC in writepid() 385 pidfile, strerror(errno)); in writepid() 394 pidfile, strerror(errno)); in writepid() 399 "write returns 0 bytes written", pidfile); in writepid() 416 checkoldpid(char* pidfile, int inchroot) in checkoldpid() argument 419 if((old = readpid(pidfile)) != -1) { in checkoldpid() 536 strncmp(cfg->pidfile, cfg->chrootdir, in perform_setup() 540 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup() 542 if(cfg->pidfile[0] == '/') in perform_setup() [all …]
|
| /netbsd-src/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 …]
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/tsiggss/ |
| H A D | authsock.pl | 23 my $pidfile = "authsock.pid"; 28 "pidfile=s" => \$pidfile, 42 open(my $pid,">",$pidfile) 43 or die "unable to open pidfile $pidfile";
|
| /netbsd-src/external/bsd/kyua-cli/dist/engine/ |
| H A D | test_case_plain_helpers.cpp | 104 std::ofstream pidfile(name.c_str()); in test_spawn_blocking_child() local 105 if (!pidfile) in test_spawn_blocking_child() 107 pidfile << pid; in test_spawn_blocking_child() 108 pidfile.close(); in test_spawn_blocking_child()
|
| H A D | test_case_atf_helpers.cpp | 213 std::ofstream pidfile(name.c_str()); in ATF_TEST_CASE_BODY() local 214 ATF_REQUIRE(pidfile); in ATF_TEST_CASE_BODY() 215 pidfile << pid; in ATF_TEST_CASE_BODY() 216 pidfile.close(); in ATF_TEST_CASE_BODY()
|
| H A D | test_case_test.cpp | 652 std::ifstream pidfile("pid"); in ATF_TEST_CASE_BODY() local 653 ATF_REQUIRE(pidfile); in ATF_TEST_CASE_BODY() 655 pidfile >> pid; in ATF_TEST_CASE_BODY() 656 pidfile.close(); in ATF_TEST_CASE_BODY() 1010 std::ifstream pidfile("pid"); in ATF_TEST_CASE_BODY() local 1011 ATF_REQUIRE(pidfile); in ATF_TEST_CASE_BODY() 1013 pidfile >> pid; in ATF_TEST_CASE_BODY() 1014 pidfile.close(); in ATF_TEST_CASE_BODY()
|
| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | nsd.c | 692 if(!nsd->pidfile || !nsd->pidfile[0]) in writepid() 697 if((fd = open(nsd->pidfile, O_WRONLY | O_CREAT | O_TRUNC in writepid() 703 nsd->pidfile, strerror(errno)); in writepid() 713 nsd->pidfile, strerror(errno)); in writepid() 719 nsd->pidfile); in writepid() 727 if (chown(nsd->pidfile, nsd->uid, nsd->gid) == -1) { in writepid() 730 nsd->pidfile, strerror(errno)); in writepid() 958 nsd.pidfile = 0; in main() 1072 nsd.pidfile = optarg; in main() 1159 if(!nsd.pidfile) in main() [all …]
|
| /netbsd-src/usr.bin/bthset/ |
| H A D | bthset.c | 99 static char *pidfile; /* PID file name */ variable 156 pidfile = getenv("BTHSET_PIDFILE"); in main() 173 pidfile = optarg; in main() 198 err(EXIT_FAILURE, "%s", pidfile); in main() 567 if (pidfile == NULL) in remove_pid() 570 unlink(pidfile); in remove_pid() 579 if (pidfile == NULL) in write_pid() 582 fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644); in write_pid()
|
| /netbsd-src/lib/libutil/ |
| H A D | Makefile | 21 passwd.c pw_scan.c pidfile.c pidlock.c pty.c \ 32 opendisk.3 openpty.3 parsedate.3 pidfile.3 pidlock.3 \ 70 MLINKS+=pidfile.3 pidfile_clean.3 71 MLINKS+=pidfile.3 pidfile_lock.3 72 MLINKS+=pidfile.3 pidfile_read.3
|
| /netbsd-src/external/bsd/nsd/etc/rc.d/ |
| H A D | nsd | 16 pidfile="/var/run/${name}.pid" 72 ln -sf "${nsd_chrootdir}${pidfile}" "${pidfile}"
|
| /netbsd-src/etc/rc.d/ |
| H A D | named | 16 pidfile="/var/run/${name}/${name}.pid" 149 local piddir="$(dirname "${pidfile}")" 153 ln -fs "${named_chrootdir}${pidfile}" "${pidfile}"
|
| H A D | dhcpcd | 24 pidfile=$(eval $command -P $myflags 2>/dev/null) 25 : ${pidfile:=/var/run/$name.pid}
|
| H A D | ntpd | 16 pidfile="/var/run/${name}.pid" 22 rc_flags="-p ${pidfile} $rc_flags"
|
| /netbsd-src/dist/pf/usr.sbin/authpf/ |
| H A D | authpf.c | 62 char pidfile[MAXPATHLEN]; /* we save pid in this file. */ variable 176 n = snprintf(pidfile, sizeof(pidfile), "%s/%s", PATH_PIDFILE, ipsrc); in main() 177 if (n < 0 || (u_int)n >= sizeof(pidfile)) { in main() 201 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 || in main() 205 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile, in main() 221 pidfile, otherpid, strerror(save_errno)); in main() 836 if (pidfile[0] && (pidfp != NULL)) in do_death() 837 if (unlink(pidfile) == -1) in do_death() 838 syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile); in do_death()
|
| /netbsd-src/external/bsd/unbound/dist/testdata/07-confroot.tdir/ |
| H A D | 07-confroot.test | 25 pidfile: "/unbound.pid" 70 pidfile: "/unbound.pid" 101 pidfile: "/unbound.pid" 132 pidfile: "/unbound.pid" 163 pidfile: "/unbound.pid" 194 pidfile: "/unbound.pid" 225 pidfile: "/nosubdir/unbound.pid" 256 pidfile: "/unbound.pid"
|
| /netbsd-src/external/bsd/cron/dist/ |
| H A D | misc.c | 297 const char *pidfile; in acquire_daemonlock() local 312 pidfile = _PATH_CRON_PID; in acquire_daemonlock() 314 if ((fd = open(pidfile, O_RDWR|O_CREAT, 0600)) == -1) { in acquire_daemonlock() 317 pidfile, strerror(errno)); in acquire_daemonlock() 340 pidfile, otherpid, strerror(save_errno)); in acquire_daemonlock() 344 pidfile, strerror(save_errno)); in acquire_daemonlock()
|
| /netbsd-src/libexec/httpd/ |
| H A D | daemon-bozo.c | 106 if (httpd->pidfile == NULL) in create_pidfile() 112 if ((file = fopen(httpd->pidfile, "w")) == NULL) in create_pidfile() 114 httpd->pidfile); in create_pidfile() 118 pidfile_path = httpd->pidfile; in create_pidfile()
|
| /netbsd-src/external/bsd/nsd/dist/contrib/bind2nsd/bind2nsd/ |
| H A D | NsdConf.py | 218 self.pidfile = config.getValue('pidfile') 233 print >> ofile, ' pidfile: %s' % (self.pidfile) 252 print >> ofile, ' pidfile: %s' % (self.pidfile) 304 self.pidfile = val 308 return self.pidfile
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/tcp/ans6/ |
| H A D | ans.py | 122 with open("ans.pid", "w") as pidfile: 123 print(os.getpid(), file=pidfile)
|
| /netbsd-src/usr.bin/newsyslog/ |
| H A D | newsyslog.c | 109 char pidfile[MAXPATHLEN]; /* File containing PID to signal */ member 401 (void)strlcpy(log->pidfile, *ap++, sizeof(log->pidfile)); in parse_cfgline() 403 log->pidfile[0] = '\0'; in parse_cfgline() 628 if (log->pidfile[0] != '\0') in log_trim() 629 pid = readpidfile(log->pidfile); in log_trim()
|