Skip to content

Change location of slurm-acct.txt - #145

Closed
dleehr wants to merge 1 commit into
BD2KGenomics:masterfrom
dleehr:jenkins-slave-slurm-startup-fixes
Closed

dleehr wants to merge 1 commit into
BD2KGenomics:masterfrom
dleehr:jenkins-slave-slurm-startup-fixes

Conversation

@dleehr

@dleehr dleehr commented Apr 12, 2016

Copy link
Copy Markdown
Contributor

Under the simple slurm config for jenkins, permissions on this file restrict who can run the sacct command. If it is in /var/run, it is set to 0600 on startup, so this change moves it to /var/log/slurm-llnl, allowing slurm to be used by non-privileged users when the toil-jenkins-slave boots.

In /var/run, permissions are reset on boot, so moving to
/var/log/slurm-llnl

# ACCOUNTING
AccountingStorageLoc=/var/run/slurm-llnl/slurm-acct.txt
AccountingStorageLoc=%s

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With heredoc(), you can just say {slurm_acct_file} because it interpolates local variables.

@hannes-ucsc

Copy link
Copy Markdown
Contributor

I'm just going to make these three changes real quick on this branch, if you don't mind.

@hannes-ucsc

Copy link
Copy Markdown
Contributor

Continued in #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants