aboutsummaryrefslogtreecommitdiff
path: root/slurm-deploy.sh
diff options
context:
space:
mode:
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