1 |
commit: 05d85650c918a3e2b093f135c47c4830244ff62a |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 23:13:47 2011 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 23:13:47 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=05d85650 |
7 |
|
8 |
Update gentoo defconfig |
9 |
|
10 |
(Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit with key F82F92E6) |
11 |
|
12 |
--- |
13 |
sys-cluster/slurm/slurm-2.2.7.ebuild | 11 +++++++++++ |
14 |
1 files changed, 11 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/sys-cluster/slurm/slurm-2.2.7.ebuild b/sys-cluster/slurm/slurm-2.2.7.ebuild |
17 |
index 6478bfc..8142585 100644 |
18 |
--- a/sys-cluster/slurm/slurm-2.2.7.ebuild |
19 |
+++ b/sys-cluster/slurm/slurm-2.2.7.ebuild |
20 |
@@ -39,6 +39,17 @@ src_prepare() { |
21 |
-i "${S}/etc/cgroup.release_agent" \ |
22 |
-i "${S}/src/plugins/proctrack/cgroup/xcgroup.h" \ |
23 |
|| die |
24 |
+ # also we running slurm daemons under slurm user |
25 |
+ sed -e '#SlurmdUser=root:SlurmdUser=slurm:g' \ |
26 |
+ -i "${S}/etc/slurm.conf.example" |
27 |
+ # and pids should go to /var/run/slurm |
28 |
+ sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ |
29 |
+ -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ |
30 |
+ -i "${S}/etc/slurm.conf.example" |
31 |
+ # also state dirs are in /var/spool/slurm |
32 |
+ sed -e 's:StateSaveLocation=/tmp:StateSaveLocation=/var/spool/slurm:g' \ |
33 |
+ -e 's:SlurmdSpoolDir=/tmp/slurmd:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ |
34 |
+ -i "${S}/etc/slurm.conf.example" |
35 |
} |
36 |
|
37 |
src_configure() { |