aboutsummaryrefslogtreecommitdiff
path: root/slurm-head-deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'slurm-head-deploy.sh')
-rwxr-xr-xslurm-head-deploy.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/slurm-head-deploy.sh b/slurm-head-deploy.sh
new file mode 100755
index 0000000..b921f18
--- /dev/null
+++ b/slurm-head-deploy.sh
@@ -0,0 +1,13 @@
+#! /bin/sh -xe
+
+##
+## slurm deployment on octopus01 (the head node)
+##
+
+## Install slurm in the same way as the worker nodes.
+./slurm-worker-deploy.sh $(guix build -f slurm.scm)
+
+# Register garbage collector root to prevent `guix gc' from garbage
+# collecting slurm. 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