mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
Merge branch 'devel' into 'main'
slurmd seem to need to be run by root See merge request glicid-public/guix-glicid!142
This commit is contained in:
commit
2769a76389
1 changed files with 0 additions and 13 deletions
|
@ -331,8 +331,6 @@
|
|||
|
||||
)
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "slurm"))
|
||||
#:group (passwd:gid (getpwnam "slurm"))
|
||||
))
|
||||
(stop #~(make-kill-destructor))
|
||||
)
|
||||
|
@ -355,17 +353,6 @@
|
|||
(mkdir-p "/var/spool/slurmd")
|
||||
(touch "/var/log/slurm/slurmd.log")
|
||||
(touch "/var/run/slurmd.pid")
|
||||
(chown "/var/log/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/var/log/slurm/slurmd.log" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/var/run/slurmd.pid" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/var/lib/slurm-archives" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/var/lib/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/var/spool/slurmd" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chown "/etc/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(for-each (lambda (slurm-file)
|
||||
(chown slurm-file (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm")))
|
||||
(chmod slurm-file #o600)
|
||||
)(find-files "/etc/slurm/"))
|
||||
#t
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue