Created
July 16, 2020 08:53
-
-
Save maxfischer2781/9659562414415416aeea950f2a9bba0e to your computer and use it in GitHub Desktop.
Configure HTCondor Startd to run jobs with login-environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
# | |
# Wrapper when executing condor jobs | |
# Run jobs via `bash -l` to force sourcing a login shell including all /etc/profile.d/*.sh scripts | |
# | |
exec "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure Startd to wrap jobs with a login shell | |
USER_JOB_WRAPPER = /usr/libexec/condor/jobwrapper.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a default
condor
installation: Putjobwrapper.sh
into/usr/libexec/condor/jobwrapper.sh
andprofile_env.cfg
into/etc/condor/config.d/profile_env.cfg
.