aboutsummaryrefslogtreecommitdiff
path: root/slurm-deploy.sh
diff options
context:
space:
mode:
authorArun Isaac2024-06-28 23:52:19 +0100
committerArun Isaac2024-06-28 23:52:36 +0100
commit9bde226e0219f6b41e8840e569b6fe0b09311df9 (patch)
tree8ef69599b15bb9dee147597502925dabdf25273f /slurm-deploy.sh
parent6b60d6a15dc30bf90413a98057e1793487b46e75 (diff)
downloadgn-machines-9bde226e0219f6b41e8840e569b6fe0b09311df9.tar.gz
Add tux04 slurm deployment.
* slurm-deploy.sh, slurm.scm: New files.
Diffstat (limited to 'slurm-deploy.sh')
-rwxr-xr-xslurm-deploy.sh19
1 files changed, 19 insertions, 0 deletions
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