Searched refs:pidfile (Results 51 - 75 of 117) sorted by relevance

12345

/freebsd-13-stable/contrib/ofed/infiniband-diags/src/
H A Drdma-ndd.c71 char *pidfile = NULL; variable
210 pidfile = optarg;
361 if (pidfile)
362 unlink(pidfile);
368 if (pidfile) {
370 f = fopen(pidfile, "w");
375 syslog(LOG_ERR, "Failed to write pidfile : %s\n",
376 pidfile);
398 {"pidfile", 0, 1, "<pidfile>", "specif
[all...]
/freebsd-13-stable/libexec/rc/rc.d/
H A Dmountd16 pidfile="/var/run/${name}.pid"
H A Dsyslogd17 pidfile="/var/run/syslog.pid"
H A Dntpd27 pidfile="${_ntp_default_dir}/${name}.pid"
53 *-p* | *--pidfile* | *-s* | *--statsdir* )
115 command_args="-p ${pidfile} -c ${ntpd_config} ${driftopt}"
H A Dlocal_unbound25 pidfile="/var/run/${name}.pid"
H A Dsshd21 pidfile="/var/run/${name}.pid"
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dwrite_pid.c77 pidfile(const char *basename) function
/freebsd-13-stable/usr.sbin/bluetooth/btpand/
H A Dtap.c60 char pidfile[PATH_MAX]; local
121 snprintf(pidfile, sizeof(pidfile), "%s/%s.pid",
123 chan->pfh = pidfile_open(pidfile, 0600, NULL);
125 log_err("can't create pidfile");
127 log_err("can't write pidfile");
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/
H A Dtoken.l69 pidfile { DP; return PIDFILE; }
/freebsd-13-stable/bin/pkill/
H A Dpkill.c136 char buf[_POSIX2_LINE_MAX], *mstr, **pargv, *p, *q, *pidfile; local
183 pidfile = NULL;
195 pidfile = optarg;
302 if (pidfile != NULL)
303 pidfromfile = takepid(pidfile, pidfilelock);
593 "usage: %s %s [-F pidfile] [-G gid] [-M core] [-N system]\n"
807 takepid(const char *pidfile, int pidfilelock) argument
813 fh = fopen(pidfile, "r");
815 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile);
[all...]
/freebsd-13-stable/usr.sbin/daemon/
H A Ddaemon.c87 const char *pidfile, *ppidfile, *title, *user, *outfn, *logtag; local
98 ppidfile = pidfile = user = NULL;
134 pidfile = optarg;
190 * Try to open the pidfile before calling daemon(3),
193 open_pid_files(pidfile, ppidfile, &pfh, &ppfh);
198 /* Write out parent pidfile if needed. */
201 * If the pidfile or restart option is specified the daemon
203 * exit to remove the pidfile or restart the command. Normally
205 * leaving the running process and the stale pidfile, so we
212 if (pidfile || ppidfil
415 open_pid_files(const char *pidfile, const char *ppidfile, struct pidfh **pfh, struct pidfh **ppfh) argument
[all...]
/freebsd-13-stable/usr.sbin/unbound/setup/
H A Dlocal-unbound-setup.sh48 pidfile=""
89 : ${pidfile:=/var/run/local_unbound.pid}
201 echo "unbound_pid=\"${pidfile}\""
260 echo " pidfile: ${pidfile}"
375 pidfile="$OPTARG"
/freebsd-13-stable/sbin/hastd/
H A Dtoken.l58 pidfile { DP; return PIDFILE; }
/freebsd-13-stable/crypto/heimdal/kcm/
H A Dmain.c107 pidfile(NULL);
/freebsd-13-stable/contrib/unbound/daemon/
H A Ddaemon.h81 /** pidfile that is used */
82 char* pidfile; member in struct:daemon
/freebsd-13-stable/contrib/blacklist/port/
H A Dpidfile.c1 /* $NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $ */
37 __RCSID("$NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $");
58 /* Deletes an existent pidfile iff it was created by this process. */
67 /* Registers an atexit(3) handler to delete the pidfile we have generated.
68 * We only register the handler when we create a pidfile, so we can assume
69 * that the pidfile exists.
86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile
89 * If a previous file is deleted, returns 1, which means that a new pidfile
109 /* Constructs a name for a pidfile i
165 pidfile(const char *path) function
[all...]
H A Dport.h59 int pidfile(const char *);
/freebsd-13-stable/contrib/kyua/engine/
H A Datf_helpers.cpp309 std::ofstream pidfile(name.c_str());
310 ATF_REQUIRE(pidfile);
311 pidfile << pid;
312 pidfile.close();
/freebsd-13-stable/contrib/pf/pflogd/
H A Dpidfile.c2 /* $OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $ */
3 /* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */
35 static const char rcsid[] = "$OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $";
45 #include "pidfile.h"
58 pidfile(const char *basename) function
/freebsd-13-stable/crypto/openssh/regress/
H A Dcfgmatchlisten.sh6 pidfile=$OBJ/remote_pid
16 rm -f $pidfile
23 exec sh -c \'"echo \$\$ > $pidfile; exec sleep 100"\' \
28 while test ! -f $pidfile ; do
55 pid=`cat $pidfile`
/freebsd-13-stable/contrib/pf/authpf/
H A Dauthpf.c72 char pidfile[MAXPATHLEN]; /* we save pid in this file. */ variable
205 n = snprintf(pidfile, sizeof(pidfile), "%s/%s",
207 if (n < 0 || (u_int)n >= sizeof(pidfile)) {
208 syslog(LOG_ERR, "path to pidfile too long");
239 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
243 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
259 pidfile, otherpid, strerror(save_errno));
952 if (pidfile[0] && pidfd != -1)
953 if (unlink(pidfile)
[all...]
/freebsd-13-stable/contrib/openbsm/bin/auditd/
H A Dauditd.c419 FILE * pidfile; local
452 if ((pidfile = fopen(AUDITD_PIDFILE, "a")) == NULL) {
459 fd = fileno(pidfile);
469 if (fprintf(pidfile, "%u\n", pid) < 0) {
474 fflush(pidfile);
/freebsd-13-stable/crypto/heimdal/kadmin/
H A Dkadmind.c174 pidfile(NULL);
188 pidfile(NULL);
/freebsd-13-stable/sbin/dhclient/
H A Derrwarn.c88 if (pidfile != NULL)
89 pidfile_remove(pidfile);
/freebsd-13-stable/libexec/pppoed/
H A Dpppoed.c77 fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]"
508 const char *pidfile; local
512 pidfile = NULL;
526 pidfile = optarg;
621 if (pidfile != NULL) {
624 if ((fp = fopen(pidfile, "w")) == NULL) {
625 perror(pidfile);
679 if (pidfile)
680 remove(pidfile);

Completed in 304 milliseconds

12345