Skip to content

Commit

Permalink
Add custom compute node prolog and epilog scripts
Browse files Browse the repository at this point in the history
If the scripts exist then run them to allow modification of the instance at
run time.

Resolves #305
  • Loading branch information
cartalla committed Feb 5, 2025
1 parent cc199b5 commit cb33064
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ trap on_exit EXIT
config_dir=/opt/slurm/config
config_bin_dir=$config_dir/bin

if [ -e $config_bin_dir/on_compute_node_configured_custom_prolog.sh ]; then
$config_bin_dir/on_compute_node_configured_custom_prolog.sh
fi

if ! [ -z $HomeMountSrc ]; then
umount /home
mount $HomeMountSrc /home
Expand Down Expand Up @@ -82,6 +86,10 @@ fi
# -e @$ANSIBLE_PATH/ansible_compute_node_vars.yml &
# popd

if [ -e $config_bin_dir/on_compute_node_configured_custom_epilog.sh ]; then
$config_bin_dir/on_compute_node_configured_custom_epilog.sh
fi

echo "$(date): Finished ${script_name}"

exit 0

0 comments on commit cb33064

Please sign in to comment.