GLOBUS-FORK-STARTE(8) | Grid Community Toolkit Manual | GLOBUS-FORK-STARTE(8) |
globus-fork-starter - Start and monitor a fork job
globus-fork-starter
The globus-fork-starter program is executes jobs specified on its standard input stream, recording the job state changes to a file defined in the /etc/globus-fork.conf configuration file. It runs until its standard input stream is closed and all jobs it is managing have terminated. The log generated by this program can be used by the SEG to provide job state changes and exit codes to the GRAM service. The globus-fork-starter program is typically started by the fork GRAM module.
The globus-fork-starter program expects its input to be a series of task definitions, separated by the newline character, each representing a separate job. Each task definition contains a number of fields, separated by the colon character. The first field is always the literal string 100 indicating the message format, the second field is a unique job tag that will be distinguish the reply from this program when multiple jobs are submitted. The rest of fields contain attribute bindings. The supported attributes are:
directory
environment
count
executable
arguments
stdin
stdout
stderr
Within each field, the following characters may be escaped by preceding them with the backslash character: - backslash (\) - semicolor (;) - comma (,) - equal (=)
Additionally, newline can be represented within a field by using the escape sequence \n.
For each job the globus-fork-starter processes, it replies by writing a single line to standard output. The replies again consist of a number of fields separated by the semicolon character.
For a successful job start, the first field of the reply is the literal 101, the second field is the tag from the input, and the third field is a comma-separated list of SEG job identifiers which consist the concatenation of a UUID and a process id. The globus-fork-starter program will write state changes to the SEG log using these job identifiers.
For a failure, the first field of the reply is the literal 102, the second field is the tag from the input, the third field is the integer representation of a GRAM error code, and the fourth field is an string explaining the error.
The following variables affect the execution of globus-fork-starter
GLOBUS_LOCATION
The following files affect the execution of globus-fork-starter
/etc/globus-fork.conf
Copyright © 1999-2016 University of Chicago
03/31/2018 | Grid Community Toolkit 6 |