/openbsd/usr.sbin/unbound/daemon/ |
H A D | unbound.c | 385 pidfile, strerror(errno)); in writepid() 540 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup() 542 if(cfg->pidfile[0] == '/') in perform_setup() 543 daemon->pidfile = strdup(cfg->pidfile); in perform_setup() 544 else daemon->pidfile = fname_after_chroot(cfg->pidfile, in perform_setup() 546 if(!daemon->pidfile) in perform_setup() 559 if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) { in perform_setup() 615 if(daemon->pidfile && daemon->pidfile[0] && in perform_setup() 621 if(!daemon->pidfile) in perform_setup() 746 if(daemon->pidfile) { in run_daemon() [all …]
|
H A D | daemon.h | 82 char* pidfile; member
|
/openbsd/usr.sbin/nsd/ |
H A D | nsd.c | 692 if(!nsd->pidfile || !nsd->pidfile[0]) in writepid() 719 nsd->pidfile); in writepid() 958 nsd.pidfile = 0; in main() 1072 nsd.pidfile = optarg; in main() 1159 if(!nsd.pidfile) in main() 1162 nsd.pidfile = nsd.options->pidfile; in main() 1164 nsd.pidfile = PIDFILE; in main() 1489 if(nsd.pidfile && nsd.pidfile[0]) { in main() 1638 if (nsd.pidfile && nsd.pidfile[0] == '/') in main() 1639 nsd.pidfile += l; in main() [all …]
|
H A D | configure.ac | 85 # Determine the pidfile location. Check if /var/run exists, if so set pidfile 89 pidfile=${localstatedir}/run/nsd.pid 91 pidfile=${dbdir}/nsd.pid 93 AC_ARG_WITH([pidfile], optwith 94 AS_HELP_STRING([--with-pidfile=path],[Pathname to the NSD pidfile]), 95 [pidfile=$withval]) 96 AC_SUBST(pidfile) subst 97 AC_DEFINE_UNQUOTED(PIDFILE, ["`eval echo $pidfile`"], [Pathname to the NSD pidfile]) 102 piddir=`dirname $pidfile`
|
H A D | Makefile.bsd-wrapper | 17 --with-pidfile="" \
|
H A D | nsd-checkconf.c | 427 SERV_GET_PATH(final, pidfile, o); in config_print_zone() 663 print_string_var("pidfile:", opt->pidfile); in config_test_print_server() 874 if (!file_inside_chroot(opt->pidfile, opt->chroot)) { in additional_checks() 876 filename, opt->pidfile, opt->chroot); in additional_checks()
|
H A D | nsd.h | 258 const char *pidfile; member
|
H A D | nsd.conf.sample.in | 103 # make sure to have pidfile reachable from there. 121 # pidfile: "@pidfile@"
|
/openbsd/regress/usr.bin/ssh/ |
H A D | agent-subprocess.sh | 9 pid=`cat $OBJ/pidfile` 22 rm -f $OBJ/pidfile
|
H A D | cfgmatch.sh | 6 pidfile=$OBJ/remote_pid 15 rm -f $pidfile
|
H A D | cfgmatchlisten.sh | 6 pidfile=$OBJ/remote_pid 16 rm -f $pidfile
|
H A D | Makefile | 128 netcat pidfile putty.rsa2 ready regress.log remote_pid \
|
/openbsd/usr.sbin/authpf/ |
H A D | authpf.c | 66 char pidfile[PATH_MAX]; /* we save pid in this file. */ variable 185 n = snprintf(pidfile, sizeof(pidfile), "%s/%s", in main() 187 if (n < 0 || (u_int)n >= sizeof(pidfile)) { in main() 219 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 || in main() 223 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile, in main() 239 pidfile, otherpid, strerror(save_errno)); in main() 948 if (pidfile[0] && pidfd != -1) in do_death() 949 if (unlink(pidfile) == -1) in do_death() 950 syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile); in do_death()
|
/openbsd/usr.bin/newsyslog/ |
H A D | newsyslog.c | 236 if ((q->pidfile && pltmp->file && in main() 248 pl->file = q->pidfile; in main() 358 send_signal(char *pidfile, int signal) in send_signal() argument 365 if ((f = fopen(pidfile, "r")) == NULL) { in send_signal() 366 warn("can't open %s", pidfile); in send_signal() 394 warnx("%s pid file: %s", err, pidfile); in send_signal() 399 sys_signame[signal], pidfile); in send_signal() 651 working->pidfile = PIDFILE; in parse_file() 668 working->pidfile = strdup(q); in parse_file() 669 if (working->pidfile == NULL) in parse_file() [all …]
|
/openbsd/lib/libutil/ |
H A D | Makefile | 12 login_fbtab.c uucplock.c fparseln.c opendisk.c pidfile.c \ 22 fparseln.3 opendisk.3 login_fbtab.3 pidfile.3 fmt_scaled.3 imsg_init.3 \
|
H A D | pidfile.c | 49 pidfile(const char *basename) in pidfile() function
|
H A D | util.h | 89 int pidfile(const char *);
|
H A D | Symbols.map | 161 pidfile;
|
/openbsd/regress/usr.sbin/syslogd/ |
H A D | RSyslogd.pm | 33 $args{pidfile} ||= "rsyslogd.pid"; 132 "-i", $self->{pidfile});
|
/openbsd/usr.sbin/unbound/smallapp/ |
H A D | unbound-checkconf.c | 109 char *p = fname_after_chroot(cfg->pidfile, cfg, 1); in print_option() 685 if(cfg->pidfile && cfg->pidfile[0]) { in morechecks() 686 char* ad = (cfg->pidfile[0]=='/')?strdup(cfg->pidfile): in morechecks() 687 fname_after_chroot(cfg->pidfile, cfg, 1); in morechecks()
|
/openbsd/sbin/mountd/ |
H A D | mountd.c | 245 FILE *pidfile; in main() local 281 pidfile = fopen(_PATH_MOUNTDPID, "r"); in main() 282 if (pidfile != NULL) { in main() 283 if (fscanf(pidfile, "%d\n", &c) > 0 && c > 0) { in main() 289 pidfile = freopen(_PATH_MOUNTDPID, "w", pidfile); in main() 291 pidfile = fopen(_PATH_MOUNTDPID, "w"); in main() 293 if (pidfile) { in main() 294 fprintf(pidfile, "%ld\n", (long)getpid()); in main() 295 fclose(pidfile); in main()
|
/openbsd/usr.sbin/unbound/ |
H A D | Makefile.bsd-wrapper | 16 --with-pidfile="" \
|
/openbsd/usr.sbin/unbound/doc/ |
H A D | README | 50 * --with-pidfile=filename 51 Set default location of pidfile,
|
/openbsd/usr.sbin/unbound/util/ |
H A D | config_file.h | 334 char* pidfile; member
|
/openbsd/sbin/unwind/libunbound/util/ |
H A D | config_file.h | 334 char* pidfile; member
|