.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CONDOR_PROCD" "1" "Apr 01, 2024" "" "HTCondor Manual" .SH NAME condor_procd \- HTCondor Manual .sp Track and manage process families .SH SYNOPSIS .sp \fBcondor_procd\fP \fB\-h\fP .sp \fBcondor_procd\fP \fB\-A\fP \fIaddress\-file\fP [\fBoptions\fP ] .SH DESCRIPTION .sp \fIcondor_procd\fP tracks and manages process families on behalf of the HTCondor daemons. It may track families of PIDs via relationships such as: direct parent/child, environment variables, UID, and supplementary group IDs. Management of the PID families include .INDENT 0.0 .IP \(bu 2 registering new families or new members of existing families .IP \(bu 2 getting usage information .IP \(bu 2 signaling families for operations such as suspension, continuing, or killing the family .IP \(bu 2 getting a snapshot of the tree of families .UNINDENT .sp In a regular HTCondor installation, this program is not intended to be used or executed by any human. .sp The required argument, \fB\-A\fP \fIaddress\-file\fP, is the path and file name of the address file which is the named pipe that clients must use to speak with the \fIcondor_procd\fP\&. .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP \fB\-h\fP Print out usage information and exit. .TP \fB\-D\fP Wait for the debugger. Initially sleep 30 seconds before beginning normal function. .TP \fB\-C\fP \fIprincipal\fP The \fIprincipal\fP is the UID of the owner of the named pipe that clients must use to speak to the \fIcondor_procd\fP\&. .TP \fB\-L\fP \fIlog\-file\fP A file the \fIcondor_procd\fP will use to write logging information. .TP \fB\-E\fP When specified, another tool such as the \fIprocd_ctl\fP tool must allocate the GID associated with a process. When this option is not specified, the \fIcondor_procd\fP will allocate the GID itself. .TP \fB\-P\fP \fIPID\fP If not specified, the \fIcondor_procd\fP will use the \fIcondor_procd\fP \(aqs parent, which may not be PID 1 on Unix, as the parent of the \fIcondor_procd\fP and the root of the tracking family. When not specified, if the \fIcondor_procd\fP \(aqs parent PID dies, the \fIcondor_procd\fP exits. When specified, the \fIcondor_procd\fP will track this \fIPID\fP family in question and not also exit if the PID exits. .TP \fB\-S\fP \fIseconds\fP The maximum number of seconds the \fIcondor_procd\fP will wait between taking snapshots of the tree of families. Different clients to the \fIcondor_procd\fP can specify different snapshot times. The quickest snapshot time is the one performed by the \fIcondor_procd\fP\&. When this option is not specified, a default value of 60 seconds is used. .TP \fB\-G\fP \fImin\-gid max\-gid\fP If the \fB\-E\fP option is not specified, then track process families using a self\-allocated, free GID out of the inclusive range specified by \fImin\-gid\fP and \fImax\-gid\fP\&. This means that if a new process shows up using a previously known GID, the new process will automatically associate into the process family assigned that GID. If the \fB\-E\fP option is specified, then instead of self\-allocating the GID, the \fIprocd_ctl\fP tool must be used to associate the GID with the PID root of the family. The associated GID must still be in the range specified. This is a Linux\-only feature. .TP \fB\-K\fP \fIwindows\-softkill\-binary\fP This is the path and executable name of the \fIcondor_softkill.exe\fP binary. It is used to send softkill signals to process families. This is a Windows\-only feature. .UNINDENT .UNINDENT .UNINDENT .SH DEALING WITH SHORT READS .sp For unknown reasons, on Linux, attemps to read the list of PIDs from the /proc filesystem do not always return all of the PIDs on the system. The \fIcondor_procd\fP attempts to detect when this occurs, using two methods. .sp If the list of PIDs does not include PID 1, the \fIcondor_procd\fP\(aqs own PID, or the PID of the \fIcondor_procd\fP\(aqs parent (which may be PID 1), then the list must be incomplete, and the \fIcondor_procd\fP immediately retries the read. .sp Additionally, the \fIcondor_procd\fP compares the number of PIDs it just read to the number of PIDs from the last time it (successfully) checked. If the number is too much smaller, it immediately retries. The default threshold is 0.90, meaning that if the current read has 90% or fewer of the last read\(aqs PIDs, it\(aqs considered invalid. In our testing, this threshold was met by roughly 1 in 4000 reads, but successfully detected all real short reads. If you need to adjust the threshold, you may do so by setting the environment variable _CONDOR_PROCAPI_RETRY_FRACTION. (In the normal case, simply have it in the environment when the \fIcondor_master\fP starts up.) .sp If a retried read is incomplete (according to either method), the \fIcondor_procd\fP returns the results of the previous read. .SH GENERAL REMARKS .sp This program may be used in a stand alone mode, independent of HTCondor, to track process families. The programs \fIprocd_ctl\fP and \fIgidd_alloc\fP are used with the \fIcondor_procd\fP in stand alone mode to interact with the daemon and to inquire about certain state of running processes on the machine, respectively. .SH EXIT STATUS .sp \fIcondor_procd\fP will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure. .SH AUTHOR HTCondor Team .SH COPYRIGHT 1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0. .\" Generated by docutils manpage writer. .