aboutsummaryrefslogtreecommitdiff
path: root/slurm-worker-deploy.sh
blob: cf7a583ec033f35ae041b87c5e804f5411c86c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/sh -xe

##
## slurm deployment on octopus worker nodes
##

case $1 in
    "")
	echo "Usage: $0 SLURM_STORE_ITEM"
	exit 1
	;;
    *)
	slurm=$1
	echo $slurm
	;;
esac

# Symlink slurm daemon executables and systemd service files.
# for executable in slurmctld slurmdbd slurmd slurmrestd;
for executable in slurmctld slurmdbd slurmd;
do
    sudo ln --force --symbolic $slurm/sbin/$executable /usr/local/sbin/$executable
    sudo ln --force --symbolic $slurm/etc/$executable.service /etc/systemd/system/$executable.service
done

# Symlink slurm client commands.
for executable in sacct	salloc sbatch scancel sdiag smap squeue srun sstat sacctmgr sattach sbcast scontrol sinfo sprio sreport sshare strigger
do
    sudo ln --force --symbolic $slurm/bin/$executable /usr/local/bin/$executable
done