Skip to content

Instantly share code, notes, and snippets.

@maxfischer2781
Created July 16, 2020 08:53
Show Gist options
  • Save maxfischer2781/9659562414415416aeea950f2a9bba0e to your computer and use it in GitHub Desktop.
Save maxfischer2781/9659562414415416aeea950f2a9bba0e to your computer and use it in GitHub Desktop.
Configure HTCondor Startd to run jobs with login-environment
#!/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 "$@"
# Configure Startd to wrap jobs with a login shell
USER_JOB_WRAPPER = /usr/libexec/condor/jobwrapper.sh
@maxfischer2781
Copy link
Author

For a default condor installation: Put jobwrapper.sh into /usr/libexec/condor/jobwrapper.sh and profile_env.cfg into /etc/condor/config.d/profile_env.cfg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment