Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: improve housekeeping drain message
Problem: sometimes systemd doesn't set $EXIT_CODE or $EXIT_STATUS and nodes that fail housekeeping are drained with the message "housekeeping code= status=". Modify the unit file to generate a message that - includes the jobid - drops the code/status labels and just print the values, if set - include the $SERVICE_RESULT or "failure" if unset Examples: When housekeeping script exits with nonzero code: housekeeping@f2PsCLp3gf9 exit-code: exited 1 When flux housekeeping kill is used: housekeeping@f2PxL1tmvUX signal: killed TERM If no env vars available: housekeeping@fuzzybunny failure
- Loading branch information