flux-admin(1)
SYNOPSIS
DESCRIPTION
flux admin provides subcommands for Flux instance administration.
COMMANDS
system-scripts
flux admin system-scripts displays the status and configuration of system scripts (prolog, epilog, and housekeeping) for the current Flux instance.
For each script type (prolog, epilog, housekeeping), the command shows:
Configuration status (enabled, not configured, or configured but inactive)
Execution mode (per-rank=true or per-rank=false for prolog/epilog)
Release settings (for housekeeping)
The actual command that will execute (if using a custom command)
Scripts that will be executed (if using the default flux-imp command)
Script Execution Logic:
System scripts from directories are only executed when the configured command is the default flux-imp run <type> command. When a custom command is configured, the directory scripts are bypassed and only the custom command executes.
When using the default command, scripts are discovered and executed in this order:
system:
<libexecdir>/flux/<type>.d/- Package-provided scripts (always executed)site: Either:
Legacy single-file script at
<sysconfdir>/flux/system/<type>if present (this skips the site scripts directory for backwards compatibility), ORScripts in
<sysconfdir>/flux/system/<type>.d/site directory
In other words, if a legacy single-file script exists, it runs instead of the site scripts directory. System scripts always run regardless.
- -v, --verbose
Show scripts even when the system is not configured. In non-verbose mode, only configured systems are shown with full details.
- --color=WHEN
Control when to use color in output. WHEN can be
always,never, orauto(default). TheNO_COLORenvironment variable also disables color output.
EXAMPLES:
Check prolog/epilog/housekeeping status:
$ flux admin system-scripts
prolog: enabled (per-rank=false)
command: /usr/bin/custom-prolog.sh
epilog: not configured
housekeeping: not configured
View scripts that would execute with default command:
$ flux admin system-scripts -v
prolog: enabled (per-rank=false)
system: /usr/libexec/flux/prolog.d
✓ 01-setup.sh
✓ 99-finalize.sh
site: /etc/flux/system/prolog.d
✓ 10-custom.sh
epilog: not configured
housekeeping: not configured
cleanup-push
flux admin cleanup-push adds a command to run after completion of the initial program, before rc3. The command is pushed to the front of the list of cleanup commands.
If COMMAND is not provided as arguments, commands are read one per line from standard input and pushed in reverse order to retain their order.
EXAMPLE:
Add a cleanup command:
$ flux admin cleanup-push "rm -rf /tmp/flux-job-*"
RESOURCES
Flux: http://flux-framework.org
Flux RFC: https://flux-framework.readthedocs.io/projects/flux-rfc
Issue Tracker: https://github.com/flux-framework/flux-core/issues
SEE ALSO
flux-config(1), flux-housekeeping(1), flux-jobtap-plugins(7)