From 9bde226e0219f6b41e8840e569b6fe0b09311df9 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 28 Jun 2024 23:52:19 +0100 Subject: Add tux04 slurm deployment. * slurm-deploy.sh, slurm.scm: New files. --- slurm-deploy.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 slurm-deploy.sh (limited to 'slurm-deploy.sh') diff --git a/slurm-deploy.sh b/slurm-deploy.sh new file mode 100755 index 0000000..8118d56 --- /dev/null +++ b/slurm-deploy.sh @@ -0,0 +1,19 @@ +#! /bin/sh -xe + +## +## Test slurm deployment on tux04 +## + +slurm=$(guix build -f slurm.scm) +echo $slurm + +# Symlink slurm daemon executables and systemd service files. +for executable in slurmctld slurmdbd slurmd slurmrestd; +do + sudo ln --no-target-directory --force --symbolic $slurm/sbin/$executable /usr/local/sbin/$executable + sudo ln --no-target-directory --force --symbolic $slurm/etc/$executable.service /etc/systemd/system/$executable.service +done + +# It is enough to register one gcroot as that marks the whole store +# item as live. +sudo ln --force --symbolic /usr/local/sbin/slurmd /var/guix/gcroots -- cgit v1.2.3